Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ozekik committed Sep 26, 2023
1 parent 085ae2d commit bbd1ba1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ jobs:
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
- name: Run tests
run: |
python -m pip install --upgrade pip
pip install tox
tox
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand All @@ -101,6 +106,11 @@ jobs:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Run tests
run: |
python -m pip install --upgrade pip
pip install tox
tox
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand All @@ -124,6 +134,11 @@ jobs:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Run tests
run: |
python -m pip install --upgrade pip
pip install tox
tox
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down
19 changes: 5 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,12 @@
envlist = py38,py39,py310,py311
skip_missing_interpreters = true
isolated_build = true
requires = tox-pyo3

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
allowlist_externals = maturin
deps =
pytest ~= 6.1.1
pytest ~= 7.4.2
commands_pre =
maturin develop --release
commands =
poetry install
poetry run pytest --cache-clear tests/
pyo3 = true
whitelist_externals = poetry
skip_install = true
pytest --cache-clear tests/

0 comments on commit bbd1ba1

Please sign in to comment.