Skip to content

Commit

Permalink
alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaPaterlini committed Dec 8, 2023
1 parent dd0bd22 commit 4ee5628
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
args: -i ${{ matrix.python-version }} --release --out dist
working-directory: python
manylinux: auto
- name: Install dependencies
run: |
python -m pip install pytest
- name: Run tests
run: |
python -m pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- run: pip install kolo --find-links=./python/dist/
- run: pip install pytest
- name: Test wheel
run: KOLO_PATH=$(realpath ./python) pytest ./python/tests/test_cli.py

- uses: actions/upload-artifact@v3
with:
path: python/dist/*.whl

0 comments on commit 4ee5628

Please sign in to comment.