Skip to content

Commit

Permalink
tests: add github actions setup for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
robvdl committed Mar 6, 2024
1 parent 43cc879 commit 427a1a5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,33 @@ jobs:

- name: Run Ruff over code
uses: chartboost/ruff-action@v1

test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"

name: Pytest
runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: python -m pip install .[test]

- name: Run tests
run: pytest

0 comments on commit 427a1a5

Please sign in to comment.