Chore: Update pytest coverage parameters in pyproject.toml #28
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
--- | |
# SPDX-License-Identifier: Apache-2.0 | |
# SPDX-FileCopyrightText: 2024 The Linux Foundation | |
# Runs on a new pull request, performs build and runs tests | |
name: "🤖 Build/Test [Pull Request]" | |
# yamllint disable-line rule:truthy | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
branches: | |
- main | |
- master | |
paths: | |
- "**" | |
- "!.github/**" | |
- "!.*" | |
- "!tox.ini" | |
permissions: {} | |
jobs: | |
repository: | |
name: "Repository" | |
# yamllint disable-line rule:line-length | |
uses: os-climate/osc-github-devops/.github/workflows/reuse-inspect-repository.yaml@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20 | |
permissions: | |
contents: read | |
python-build: | |
name: "Python project" | |
needs: repository | |
if: needs.repository.outputs.python_project == 'true' | |
runs-on: ubuntu-24.04 | |
outputs: | |
matrix_json: ${{ steps.python-project-build.outputs.matrix_json }} | |
artefact_path: ${{ steps.python-project-build.outputs.artefact_path }} | |
permissions: | |
contents: read | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: "Build Python project" | |
id: python-project-build | |
# yamllint disable-line rule:line-length | |
uses: os-climate/osc-github-devops/.github/actions/python-project-build-action@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20 | |
with: | |
build_tag: ${{ needs.repository.outputs.build_tag }} | |
python-test: | |
name: "Test" | |
# yamllint disable-line rule:line-length | |
uses: os-climate/osc-github-devops/.github/workflows/reuse-python-tests.yaml@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20 | |
needs: | |
- python-build | |
# Matrix job | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.python-build.outputs.matrix_json) }} | |
with: | |
python_version: ${{ matrix.python-version }} | |
permissions: | |
contents: read | |
python-audit: | |
name: "Audit" | |
# yamllint disable-line rule:line-length | |
uses: os-climate/osc-github-devops/.github/workflows/reuse-python-audit.yaml@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20 | |
needs: | |
- python-build | |
# Matrix job | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.python-build.outputs.matrix_json) }} | |
with: | |
python_version: ${{ matrix.python-version }} | |
permissions: | |
contents: read | |
notebooks: | |
name: "Jupyter notebooks" | |
if: needs.repository.outputs.jupyter_notebooks == 'true' | |
# yamllint disable-line rule:line-length | |
uses: os-climate/osc-github-devops/.github/workflows/reuse-notebook-tests.yaml@24097e8d73176a7eeb512dd1654726edbb3fc5f6 # 2024-01-20 | |
needs: | |
- repository | |
- python-build | |
# Matrix job | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.python-build.outputs.matrix_json) }} | |
with: | |
python_version: ${{ matrix.python-version }} | |
permissions: | |
contents: read |