diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a2fcc34..e2d78e5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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