Skip to content

Commit

Permalink
fix: upgrade pip before running tox
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil committed Jul 15, 2022
1 parent 3fbfd25 commit dc78fd5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,27 +79,37 @@ jobs:
steps:
- name: Set Newline Behavior
run : git config --global core.autocrlf false

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix['python-version'] }}

- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Install tox
run: python -m pip install --upgrade tox

- name: Get Tox Environment Name From Matrix Name
uses: rishabhgupta/split-by@v1
id: split-matrix-name
with:
string: '${{ matrix.name }}'
split-by: '-'

- name: Test with coverage
if: "! contains(matrix.name, 'pypy3')"
run: python -m tox -e ${{ steps.split-matrix-name.outputs._0}}-cov

- name: Test without coverage
if: "contains(matrix.name, 'pypy3')"
run: python -m tox -e ${{ steps.split-matrix-name.outputs._0}}

# TODO: https://github.com/pytest-dev/pytest-html/issues/481
# - name: Upload coverage to codecov
# if: github.event.schedule == ''
Expand Down

0 comments on commit dc78fd5

Please sign in to comment.