Skip to content

Commit

Permalink
Use tox-gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsnodnb committed Aug 9, 2024
1 parent ed0ba64 commit 3e7e065
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry & tox-gh
- name: Install poetry & tox-gh-actions
run: |
pip install -U pip pipx
pipx install poetry
pipx install tox
pip install tox-gh
pip install tox-gh-actions
- name: Configure poetry
uses: actions/setup-python@v5
Expand All @@ -48,15 +48,12 @@ jobs:
poetry self add "poetry-dynamic-versioning[plugin]"
echo "${{ secrets.VOIP_PEM_BASE64 }}" | base64 -d > ./tests/clients/voip/dummy.pem
- name: Prepare test suite
run: tox --notest

- name: Run pytest
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tox --skip-pkg-install
tox
poetry run coverage report
- name: Upload coverage reports to Codecov
Expand Down
7 changes: 2 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[tox]
envlist =
py39-httpx{23,24,25,26,27}-cryptography{40,41,42}
py310-httpx{23,24,25,26,27}-cryptography{40,41,42}
py311-httpx{23,24,25,26,27}-cryptography{40,41,42}
py312-httpx{23,24,25,26,27}-cryptography{40,41,42}
py{39,310,311,312}-httpx{23,24,25,26,27}-cryptography{40,41,42}

[testenv]
allowlist_externals =
Expand All @@ -26,7 +23,7 @@ commands =
poetry install --sync --no-root
poetry run python -m pytest -v tests

[gh]
[gh-actions]
python =
3.9 = py39
3.10 = py310
Expand Down

0 comments on commit 3e7e065

Please sign in to comment.