Skip to content

Commit

Permalink
add github action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBoyce committed Oct 14, 2024
1 parent 7c9b0fb commit 59e8549
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/python-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

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

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

name: Test package
runs-on: ${{ matrix.os}}

steps:
- name: Run actions/checkout
uses: actions/checkout@v4

- name: Run actions/setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version}}

- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[test-tools]
- name: Run tests
run: pytest

0 comments on commit 59e8549

Please sign in to comment.