Skip to content

Alternative Ne/Si calibration #189

Alternative Ne/Si calibration

Alternative Ne/Si calibration #189

Workflow file for this run

---
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