chore(deps): update dependency pydoc-markdown to v4.8.2 #393
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
POETRY_VERSION: "<1.4.0" | |
jobs: | |
relock: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry poethepoet | |
- name: Lock dependencies | |
run: | | |
poetry lock | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
if: github.ref != 'refs/heads/master' | |
with: | |
commit_message: "chore: update poetry.lock" | |
lint: | |
needs: [relock] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.10"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install poetry poethepoet | |
poetry install | |
- name: Build and install the library | |
run: | | |
poe build | |
- name: Test with pytest | |
run: | | |
export PYTHONPATH=$(pwd) | |
poetry run pip install -r requirements-dev.txt | |
poe test | |
- name: Typecheck the code | |
run: | | |
poetry run poe mypy | |
- name: Lint the code | |
run: | | |
poetry run poe flake8 | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./ | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
files: ./coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
verbose: true | |
test: | |
needs: [relock] | |
if: | | |
! contains(github.event.head_commit.message, 'docs') && | |
! contains(github.event.head_commit.message, 'chore') | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install "poetry${{ env.POETRY_VERSION }}" poethepoet | |
poetry install | |
- name: Build and install the library | |
run: | | |
poe build | |
- name: Test with pytest | |
run: | | |
poetry run pip install -r requirements-dev.txt | |
poe test |