Skip to content

Update coverallsapp/github-action action to v2.3.8 #154

Update coverallsapp/github-action action to v2.3.8

Update coverallsapp/github-action action to v2.3.8 #154

name: example_package CI
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '0 8 * * 1-5'
workflow_dispatch:
jobs:
tests:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, windows-2025, macos-15]
python-version: ["3.12", "3.13", "3.14"]
steps:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install example_package and its testing dependencies
run: pip install -e .[testing]
- name: Run test suite
run: pytest --cov example_package --cov-report term-missing --cov-append .
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
fail-on-error: false
docs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up Python 3.14
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.14.7
- name: Install python dependencies
run: |
pip install --upgrade pip
pip install -e .[docs]
- name: Build docs
run: cd docs && make
pre-commit:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up Python 3.14
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: 3.14.7
- name: Install python dependencies
run: |
pip install --upgrade pip
pip install -e .[pre-commit]
- name: Run pre-commit
run: |
pre-commit install
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )