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 5775538
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 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
13 changes: 2 additions & 11 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]
deps =
pytest ~= 6.1.1
commands =
poetry install
poetry run pytest --cache-clear tests/
pyo3 = true
poetry run maturin develop --release
poetry run pytest --cache-clear tests/
whitelist_externals = poetry
skip_install = true

0 comments on commit 5775538

Please sign in to comment.