Skip to content

Commit

Permalink
GA fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrolexa committed Dec 16, 2024
1 parent 3832172 commit 1655bec
Showing 1 changed file with 30 additions and 31 deletions.
61 changes: 30 additions & 31 deletions .github/workflows/pythontest.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
name: Python tests

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

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

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# setuptools_scm requires a non-shallow clone of the repository
fetch-depth: 0
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# setuptools_scm requires a non-shallow clone of the repository
fetch-depth: 0

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

- name: Install Python package
run: |
python -m pip install .[dev]
- name: Run Python tests
run: |
python -m pytest --nbval-lax
- name: Install Python package
run: |
python -m pip install .[test]
- name: Run Python tests
run: |
python -m pytest --nbval-lax

0 comments on commit 1655bec

Please sign in to comment.