Skip to content

Commit

Permalink
CI: try a different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Sep 7, 2024
1 parent f434435 commit 5572249
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,24 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1
toolchain: stable
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v5
with:
args: --release --out $TGT_DIR
sccache: 'true'
manylinux: auto
working-directory: py
env:
TGT_DIR: "target/wheels/${{ matrix.python-version }}"
- name: Install package
run: |
python-version: ${{ matrix.python-version }}
- run: |
pip install -U pip wheel
pip install pandas numpy scipy pytest maturin
name: Install dependencies
- run: |
mkdir -p $TGT_DIR
rm -f $TGT_DIR/*.whl
maturin build --release --interpreter python --out $TGT_DIR
pip install $TGT_DIR/*.whl
name: Install package
env:
TGT_DIR: "target/wheels/${{ matrix.python-version }}"
- name: Run tests
run: |
pip install pytest pandas scipy
pytest
- run: pytest --verbose

0 comments on commit 5572249

Please sign in to comment.