Skip to content

CI test UKMO

CI test UKMO #30

Workflow file for this run

# This workflow will install Python dependencies and run tests on different python versions
# more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI test UKMO
on:
schedule:
- cron: '48 13 * * *'
push:
branches:
- metoffice
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.7']
steps:
- uses: actions/checkout@v3
with:
ref: metoffice
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# - name: Cache PIP and Poetry
# uses: actions/cache@v2.1.6
# with:
# path: |
# ~/.cache/pip/
# ~/.cache/pypoetry/
# key: pip&poetry-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install package
run: poetry install --only main
- name: Display installed packages
run: |
poetry env list
poetry show
- name: Run tests
run: poetry run python -m unittest discover tests/