Skip to content

Commit

Permalink
Merge pull request #189 from pytest-dev/bump-tox
Browse files Browse the repository at this point in the history
Bump tox
  • Loading branch information
youtux committed Jan 2, 2023
2 parents eaf612a + 9cbc7a0 commit 75424f6
Show file tree
Hide file tree
Showing 2 changed files with 257 additions and 231 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,52 @@ jobs:
toxfactor: py312
ignore-typecheck-outcome: true
ignore-test-outcome: true

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
id: setup-python
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

- name: Install poetry
run: |
python -m pip install poetry==1.3.1
- name: Configure poetry
run: |
python -m poetry config virtualenvs.in-project true
- name: Cache the virtualenv
id: poetry-dependencies-cache
uses: actions/cache@v3
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dev dependencies
if: steps.poetry-dependencies-cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
pip install -U setuptools
pip install "tox~=4.0" coverage[toml]
python -m poetry install --only=dev
- name: Type checking
# Ignore errors for older pythons
continue-on-error: ${{ matrix.ignore-typecheck-outcome }}
run: |
source .venv/bin/activate
tox -e mypy
- name: Test with tox
continue-on-error: ${{ matrix.ignore-test-outcome }}
run: |
source .venv/bin/activate
coverage erase
tox run-parallel -f ${{ matrix.toxfactor }} --parallel-no-spinner --parallel-live
coverage combine
coverage xml
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
Expand Down

0 comments on commit 75424f6

Please sign in to comment.