Skip to content

Merge pull request #34 from frank1010111/dependabot/github_actions/co… #107

Merge pull request #34 from frank1010111/dependabot/github_actions/co…

Merge pull request #34 from frank1010111/dependabot/github_actions/co… #107

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
extra_args: --hook-stage manual --all-files
tests:
name: Test on ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test with nox
run: pipx run nox -s tests
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}