mirror of
https://github.com/OMGeeky/flucto-heisskleber.git
synced 2026-01-02 01:26:40 +01:00
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v4...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
83 lines
1.9 KiB
YAML
83 lines
1.9 KiB
YAML
name: CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
FORCE_COLOR: 3
|
|
|
|
jobs:
|
|
pre-commit:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.x"
|
|
- uses: pre-commit/action@v3.0.1
|
|
with:
|
|
extra_args: --hook-stage manual --all-files
|
|
- name: Run Ruff
|
|
run: |
|
|
pip install ruff
|
|
ruff check .
|
|
|
|
tests:
|
|
name: Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
|
|
runs-on: ${{ matrix.runs-on }}
|
|
needs: [pre-commit]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.11"]
|
|
# python-version: ["3.11", "3.12", "3.13"]
|
|
runs-on: [ubuntu-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
allow-prereleases: true
|
|
|
|
- name: Install dependencies
|
|
run: python -m pip install -e ".[test,docs]"
|
|
|
|
- name: Run tests
|
|
run: python -m pytest -ra --cov --cov-report=xml --cov-report=term --durations=20
|
|
|
|
- name: Upload coverage
|
|
uses: codecov/codecov-action@v5
|
|
env:
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
with:
|
|
files: ./coverage.xml
|
|
fail_ci_if_error: true
|
|
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
needs: [pre-commit]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Build docs
|
|
run: |
|
|
pip install ".[docs]"
|
|
sphinx-build -b html docs docs/_build/html
|