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 3ac43a0 commit a951f54
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
pull_request:

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

name: Test
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 a951f54

Please sign in to comment.