Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a GitHub Action to run pytest on the main branch #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: pytest
on:
push:
pull_request:
workflow_dispatch:
jobs:
pytest:
strategy:
fail-fast: false
matrix: # https://github.com/actions/python-versions/releases
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.10"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pip wheel
- run: pip install aiofiles asynctempfile pytest
- run: pip install --editable .
- run: pytest