Skip to content

Commit

Permalink
Update CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Jul 28, 2023
1 parent bd68930 commit 2eff0d1
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,36 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
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
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
- uses: abatilo/[email protected]
cache: "poetry"
- uses: abatilo/[email protected]
with:
poetry-version: ${{ env.poetry-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-2-${{ hashFiles('src/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-2-
- run: poetry install --no-root
- run: PYTHONPATH=src/.:tests/. poetry run pytest

mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
- uses: abatilo/[email protected]
cache: "poetry"
- uses: abatilo/[email protected]
with:
poetry-version: ${{ env.poetry-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-2-${{ hashFiles('src/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-2-
- run: poetry install --no-root
- run: poetry run mypy

0 comments on commit 2eff0d1

Please sign in to comment.