Debian Codegraph @

.github/workflows/python-package.yml

raw symbols SCIP
1 # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2 # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
4 name: Python package
5
6 on:
7 push:
8 branches: [master]
9 pull_request:
10 branches: [master]
11
12 jobs:
13 lint:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v4
17 - name: Set up Python 3.13
18 uses: actions/setup-python@v5
19 with:
20 python-version: 3.13
21 cache: "pip" # caching pip dependencies
22 - uses: pre-commit/[email protected]
23
24 test:
25 runs-on: ubuntu-latest
26 strategy:
27 fail-fast: false
28 matrix:
29 python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
30
31 steps:
32 - uses: actions/checkout@v4
33 - name: Set up Python ${{ matrix.python-version }}
34 uses: actions/setup-python@v5
35 with:
36 python-version: ${{ matrix.python-version }}
37 cache: "pip" # caching pip dependencies
38 - name: Install dependencies
39 run: |
40 python -m pip install --upgrade pip
41 python -m pip install pytest .[test] -r requirements.txt -r requirements_test.txt
42 - name: Test with pytest
43 run: |
44 pytest --cov=flux_led --cov-report term-missing --cov-report xml -- tests
45 - name: Upload codecov
46 uses: codecov/codecov-action@v5