chore(deps): update dependency pytest to v8 #33
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: | |
jobs: | |
pre-commit: | |
# this can be changed to `self-hosted` to move to self-hosted | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- uses: pre-commit/action@v2.0.3 | |
nox-sessions-matrix-split: | |
# this can be changed to `self-hosted` to move to self-hosted | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install nox nox-poetry | |
- id: set-matrix | |
run: | | |
echo "::set-output name=matrix::$( nox -l | grep '\*' | grep '\->' | awk '{print $2}' | jq --raw-input | jq --slurp -c '.[] | {session: .}' | jq --slurp -c '. | {include: .}' )" | |
nox: | |
needs: nox-sessions-matrix-split | |
strategy: | |
matrix: ${{ fromJson(needs.nox-sessions-matrix-split.outputs.matrix) }} | |
# this can be changed to `self-hosted` to move to self-hosted | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry nox nox-poetry | |
- name: Running nox | |
run: | | |
nox --session "${{ matrix.session }}" --force-color | |
- name: Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos |