Documentation updates #373
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
# Runs all tests and pushes coverage report to codeclimate | |
name: Coverage | |
defaults: | |
run: | |
shell: bash | |
on: # Runs on all push events to master branch and any push related to a pull request | |
push: | |
branches: | |
- master | |
pull_request: # so that codeclimate gets coverage and reports on the diff | |
jobs: | |
coverage: | |
name: ${{ matrix.os }} / ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: # only lowest supported python on ubuntu-latest | |
os: [ubuntu-latest] | |
python-version: [3.11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: '**/pyproject.toml' | |
- name: Install package with test dependencies | |
run: python -m pip install ".[test]" | |
- name: Get acc-models-lhc | |
run: git clone -b 2022 https://gitlab.cern.ch/acc-models/acc-models-lhc.git --depth 1 | |
- name: Run all tests | |
run: make alltests | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |