Skip to content

Commit

Permalink
Create test-pytest.yml
Browse files Browse the repository at this point in the history
added github action script for testing
  • Loading branch information
musslick committed Jul 27, 2024
1 parent 623ff59 commit 5bbf82b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test with py.test

on:
pull_request:
merge_group:
push:
branches:
- main


jobs:
test:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- run: pip install ".[test]"
- run: pytest --doctest-modules

0 comments on commit 5bbf82b

Please sign in to comment.