Skip to content

Merge pull request #22 from gadomski/test-in-ci #411

Merge pull request #22 from gadomski/test-in-ci

Merge pull request #22 from gadomski/test-in-ci #411

Workflow file for this run

name: Build and test Python bindings
on:
push:
pull_request:
schedule:
- cron: '0 6 * * 1' # Run every monday at 06:00 UTC
jobs:
linux:
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:
toolchain: stable
target: aarch64-apple-darwin
- 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