Skip to content

Commit

Permalink
Merge pull request #22 from gadomski/test-in-ci
Browse files Browse the repository at this point in the history
Add tests to CI runs
  • Loading branch information
hugoledoux authored Oct 28, 2024
2 parents ae9c68d + 794352b commit b2c9ba0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Python bindings
name: Build and test Python bindings

on:
push:
Expand All @@ -11,27 +11,51 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- uses: PyO3/maturin-action@v1
with:
maturin-version: 1.6.0
manylinux: 2014
command: build
args: --release --sdist -i python3.12
- name: Install startinpy
run: pip install .
- name: Install test requirements
run: pip install -r tests/requirements.txt
- name: Run tests
run: pytest

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- uses: PyO3/maturin-action@v1
with:
maturin-version: 1.6.0
command: build
args: --release --sdist -i python3.12
- name: Install startinpy
run: pip install .
- name: Install test requirements
run: pip install -r tests/requirements.txt
- name: Run tests
run: pytest

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install aarch64-apple-darwin toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -42,3 +66,9 @@ jobs:
maturin-version: 1.6.0
command: build
args: --release --sdist -i python3.12
- name: Install startinpy
run: pip install .
- name: Install test requirements
run: pip install -r tests/requirements.txt
- name: Run tests
run: pytest

0 comments on commit b2c9ba0

Please sign in to comment.