build(deps-dev): Bump tox from 4.15.0 to 4.15.1 in the dev group #1038
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# manual | |
workflow_dispatch: | |
env: | |
PRE_COMMIT_CACHE: ~/.cache/pre-commit | |
jobs: | |
tox-precommit: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.11" | |
os: [ubuntu-latest] | |
env: | |
- TOXENV: "pre-commit" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry==1.5.1 tox==4.11.3 tox-gh | |
- name: Cache pre-commit | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.PRE_COMMIT_CACHE }} | |
key: ${{ matrix.os }}-${{ matrix.python-version }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Run tox | |
run: | | |
tox | |
shell: bash | |
env: ${{ matrix.env }} | |
tox-tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry==1.5.1 tox==4.11.3 tox-gh | |
- name: Cache tox env | |
uses: actions/cache@v4 | |
with: | |
path: .tox | |
key: ${{ matrix.os }}-${{ matrix.python-version }}-tox-${{ hashFiles('pyproject.toml', '.pre-commit-config.yaml') }} | |
- name: Run tox | |
run: | | |
tox -p | |
- name: set coverage mapping | |
run: | | |
MATRIX_PYTHON_VERSION=${{matrix.python-version}} | |
echo "TOX_COVERAGE_ENV=py$(echo ${MATRIX_PYTHON_VERSION} | cut -d . -f -2 | sed -e 's/\.//g')" >> $GITHUB_ENV | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./.tox/.coverage.${{ env.TOX_COVERAGE_ENV }}.xml | |
verbose: true | |
fail_ci_if_error: true | |
flags: "${{ env.TOX_COVERAGE_ENV }}" |