Skip to content

Commit

Permalink
Run pytest on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeage committed Jul 14, 2024
1 parent c08a717 commit 07277fe
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
# yamllint disable rule:line-length
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Tests
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main
tags:
- "v*"
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
fail-fast: false
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pytest
run: pip install pytest
- name: Test
run: python -m pytest

0 comments on commit 07277fe

Please sign in to comment.