Skip to content

Commit

Permalink
streamline ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed Oct 25, 2024
1 parent 628895d commit 78eeab7
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
name: tests
on:
- push
- pull_request
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.11"
os: ubuntu-latest
- python-version: "3.11"
os: windows-latest
- python-version: "3.10"
os: ubuntu-latest
- python-version: "3.9"
os: ubuntu-latest
- python-version: "3.12"
os: ubuntu-latest
python-version: [3.9, "3.10", 3.11, 3.12]

steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Pip install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .[test]
- name: Run tests with pytest
run: pytest
- 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: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
pytest

0 comments on commit 78eeab7

Please sign in to comment.