Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Force pytest to only use local packages; disable MacOS #5

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .github/workflows/maturin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# * remove the "Upload to GitHub release" step
# * remove the emscripten / pytest step -- this fails for reasons that are too
# hard to to debug right now
# * added --no-index to local package installation during pytest, and remove
# MacOS pytest (workaround for
# <https://github.com/PyO3/maturin/issues/1971#issuecomment-2177906051>).
#
name: CI

Expand Down Expand Up @@ -64,7 +67,7 @@ jobs:
shell: bash
run: |
set -e
pip install cbor-diag --find-links dist --force-reinstall
pip install cbor-diag --no-index --find-links dist --force-reinstall
pip install pytest
pytest
- name: pytest
Expand All @@ -80,7 +83,7 @@ jobs:
pip3 install -U pip pytest
run: |
set -e
pip3 install cbor-diag --find-links dist --force-reinstall
pip3 install cbor-diag --no-index --find-links dist --force-reinstall
pytest

windows:
Expand Down Expand Up @@ -114,7 +117,7 @@ jobs:
shell: bash
run: |
set -e
pip install cbor-diag --find-links dist --force-reinstall
pip install cbor-diag --no-index --find-links dist --force-reinstall
pip install pytest
pytest

Expand Down Expand Up @@ -143,14 +146,6 @@ jobs:
with:
name: wheels-macos-${{ matrix.platform.target }}
path: dist
- name: pytest
if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
shell: bash
run: |
set -e
pip install cbor-diag --find-links dist --force-reinstall
pip install pytest
pytest

emscripten:
runs-on: ${{ matrix.platform.runner }}
Expand Down
Loading