Skip to content

Commit

Permalink
feat(ci): add pytest and pyright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Jan 25, 2024
1 parent 3b770ad commit 473ec90
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python Unit Tests and Type Checks

on: ["push", "pull_request"]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "pypy3.10"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install pytest
- name: Run tests
run: pytest test.py -v
- name: Check types
run: npx pyright

0 comments on commit 473ec90

Please sign in to comment.