Skip to content

Commit

Permalink
ci: test Python package
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed May 19, 2024
1 parent 161f823 commit 49403d3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python CI

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14]
python-version: ['3.8', '3.12']
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Pip install the package
run: python -m pip install .[tests]
- name: Run pytest
run: |
pytest -vv

0 comments on commit 49403d3

Please sign in to comment.