Skip to content

CI

CI #128

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
# Weekly Thursday 5AM build
# * is a special character in YAML so you have to quote this string
- cron: '0 5 * * 4'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.11'
- name: Install dependencies
run: pip install docutils flake8 pytest pytest-cov --upgrade
- name: Tests
run: |
flake8 *.py --count
pytest --cov=./ --cov-report=xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
files: ./coverage.xml
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}