Skip to content

Upgrade python packages and make some improvements to deserialisation #95

Upgrade python packages and make some improvements to deserialisation

Upgrade python packages and make some improvements to deserialisation #95

Workflow file for this run

name: test
on: [push, pull_request]
env:
# Task vars
python-version: 3.11
poetry-version: 1.4.0
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ env.python-version }}
- uses: pre-commit/[email protected]
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ env.python-version }}
- uses: abatilo/[email protected]
with:
poetry-version: ${{ env.poetry-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-2-
- run: poetry install --no-root
- uses: actions/checkout@v2
with:
repository: newtheatre/history-project
path: content
- run: PYTHONPATH=nthp_api poetry run pytest
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ env.python-version }}
- uses: abatilo/[email protected]
with:
poetry-version: ${{ env.poetry-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-2-
- run: poetry install --no-root
- run: poetry run mypy