Skip to content

Commit

Permalink
Add pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
k0t3n committed Feb 1, 2024
1 parent bd40a3c commit 04466fd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,25 @@ jobs:
run: poetry install --no-root --with=test
- name: Check types
run: poetry run mypy cachepot
pytest:
strategy:
matrix:
python: [ '3.9', '3.10', '3.11', '3.12' ]
fail-fast: false
name: 'Pytest python ${{ matrix.python }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: poetry
- name: Install dependencies
run: poetry install --no-root --with=test
- name: Run tests
run: poetry run pytest

0 comments on commit 04466fd

Please sign in to comment.