-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (51 loc) · 1.68 KB
/
backend-python.yaml
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
47
48
49
50
51
52
53
54
name: "Backend: Python"
on:
push:
branches:
- main
pull_request:
paths:
- backend/**
- .github/**
branches:
- main
defaults:
run:
working-directory: backend
jobs:
lint-and-test:
name: Test jobq-server on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: [ "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }} on ${{ matrix.os }}
uses: ./.github/actions/python-deps
with:
pythonVersion: ${{ matrix.python }}
workingDirectory: "backend"
- uses: ./.github/actions/python-lint
with:
pythonVersion: ${{ matrix.python }}
workingDirectory: "backend"
- name: Execute python tests
run: uv run pytest -s --cov=src --cov-report=xml --junitxml=junit.xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./backend/coverage.xml
slug: aai-institute/jobq
flags: backend
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./backend/junit.xml
slug: aai-institute/jobq
flags: backend