Skip to content

Commit

Permalink
pin tox versions and update unit/int file specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
c-ryan-k committed May 22, 2024
1 parent bcbe0ed commit caff06c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
python-version: ${{ matrix.py }}
- uses: actions/checkout@v4
- name: Install tox-gh
run: python -m pip install tox-gh
run: python -m pip install tox-gh tox==4.12.1
- name: Setup test suite
run: tox r -vv --notest
- name: Run test suite
Expand All @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v4
- name: Run code coverage
run: |
python -m pip install tox
python -m pip install tox==4.12.1
tox -e coverage
coverage=$(jq .totals.percent_covered coverage.json | cut -c1-4)
echo "Code coverage: $coverage%" >> $GITHUB_STEP_SUMMARY
Expand Down
2 changes: 1 addition & 1 deletion dev_requirements
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ pylint<=2.13.8
flake8
pytest-xdist
pytest-rerunfailures
tox
tox==4.12.1
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ commands =
az -v
# run tests
# You can pass additional positional args to pytest using `-- {args}`
unit: pytest -k _unit ./azext_iot/tests {posargs}
int: pytest -k _int ./azext_iot/tests {posargs}
unit: pytest -k _unit.py ./azext_iot/tests {posargs}
int: pytest -k _int.py ./azext_iot/tests {posargs}

# tox-gh matrix (github action -> tox python environment)
[gh]
Expand Down

0 comments on commit caff06c

Please sign in to comment.