-
Notifications
You must be signed in to change notification settings - Fork 66
46 lines (41 loc) · 1.24 KB
/
pythonapp.yaml
File metadata and controls
46 lines (41 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Python application
on: [pull_request, workflow_dispatch]
permissions:
checks: write
jobs:
build_backend:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.9, "3.10"]
env:
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v5
- name: Remove cached duckdb extensions
run: rm -rf ~/.duckdb
- uses: fjwillemsen/setup-nox2@v3.0.0
- run: python -m pip install github-action-utils uv -U
- name: List nox envs
run: nox -l
- run: nox --pythons '${{ matrix.python }}'
- run: uvx poetry build
- run: uvx poetry check --strict
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: results.xml
comment_mode: off
check_name: "Test Results - ${{ join(matrix.*, ', ') }}"
- uses: codecov/codecov-action@v5.5.1
env:
PYTHON: ${{matrix.python}}
BLEEDING_EDGE: ${{matrix.bleeding_edge}}
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: PYTHON # ,BLEEDING_EDGE # set from matrix
fail_ci_if_error: true
verbose: true