Skip to content

chore(deps): bump poetry from 1.5.0 to 1.5.1 in /.github/workflows #2089

chore(deps): bump poetry from 1.5.0 to 1.5.1 in /.github/workflows

chore(deps): bump poetry from 1.5.0 to 1.5.1 in /.github/workflows #2089

Workflow file for this run

---
name: Tests
on:
- push
- pull_request
permissions:
contents: read
jobs:
tests:
name: "${{ matrix.session }} ${{ matrix.python-version }}"
runs-on: "${{ matrix.runs-on || 'ubuntu-latest' }}"
strategy:
fail-fast: false
matrix:
include:
- { python-version: "3.11", session: "flake8" }
- { python-version: "3.11", session: "safety" }
- { python-version: "3.11", session: "mypy" }
- { python-version: "3.10", session: "mypy" }
- { python-version: "3.9", session: "mypy" }
- { python-version: "3.8", session: "mypy" }
- { python-version: "3.7", session: "mypy" }
- { python-version: "3.11", session: "tests" }
- { python-version: "3.10", session: "tests" }
- { python-version: "3.9", session: "tests" }
- { python-version: "3.8", session: "tests" }
- { python-version: "3.7", session: "tests" }
- { python-version: "3.11", session: "typeguard" }
- { python-version: "3.11", session: "xdoctest" }
- { python-version: "3.11", session: "docs" }
env:
NOXSESSION: "${{ matrix.session }}"
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python "${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Install Nox
run: |
pip install --constraint=.github/workflows/constraints.txt nox nox-poetry
nox --version
- name: Run Nox
run: |
nox --force-color --python="${{ matrix.python-version }}"
- name: Upload coverage data
if: always() && matrix.session == 'tests'
uses: "actions/upload-artifact@v3"
with:
name: coverage-data
path: ".coverage.*"
- name: Upload documentation
if: matrix.session == 'docs'
uses: "actions/upload-artifact@v3"
with:
name: docs
path: "docs/_build"
coverage:
runs-on: ubuntu-latest
needs: tests
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Install Nox
run: |
pip install --constraint=.github/workflows/constraints.txt nox nox-poetry
nox --version
- name: Download coverage data
uses: actions/download-artifact@v3.0.2
with:
name: coverage-data
- name: Combine coverage data and display human readable report
run: |
nox --force-color --session=coverage
- name: Create coverage report
run: |
nox --force-color --session=coverage -- xml
- name: Upload coverage report
uses: codecov/codecov-action@v3
tests-success:
runs-on: ubuntu-latest
if: ${{ always() }}
needs:
- tests
- coverage
steps:
- name: Ensure tests succeeded
if: "${{ needs.tests.result != 'success' }}"
run: |
exit 1
- name: Ensure coverage succeeded
if: "${{ needs.coverage.result != 'success' }}"
run: |
exit 1