Alternative Ne/Si calibration #189
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: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
tags: | |
- v*.*.* | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox-gh-actions | |
- name: Run tox | |
env: | |
COVERAGE_FILE: .coverage.${{ matrix.python_version }} | |
run: tox | |
- name: Store the coverage report | |
uses: actions/[email protected] | |
with: | |
include-hidden-files: true | |
name: coverage-${{ matrix.python_version }} | |
path: .coverage.${{ matrix.python_version }} | |
coverage: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
- name: Retrieve the coverage reports | |
id: download | |
uses: actions/[email protected] | |
with: | |
pattern: coverage-* | |
merge-multiple: true | |
- name: Process the coverage reports | |
id: coverage_processing | |
uses: py-cov-action/[email protected] | |
with: | |
COVERAGE_DATA_BRANCH: 'COVERAGE-REPORT' | |
GITHUB_TOKEN: ${{ github.token }} | |
MERGE_COVERAGE_FILES: true | |
- name: Store the pull request coverage comment for later posting | |
if: steps.coverage_processing.outputs.COMMENT_FILE_WRITTEN == 'true' | |
uses: actions/[email protected] | |
with: | |
name: python-coverage-comment-action | |
path: python-coverage-comment-action.txt |