-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.22 KB
/
python.yml
File metadata and controls
50 lines (41 loc) · 1.22 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
47
48
49
50
name: Python CI
on:
push:
paths:
- 'qualitag_python/**'
- '.github/workflows/python.yml'
jobs:
build-and-test:
name: Build and Test Python Application
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: pip install -r requirements.txt
working-directory: qualitag_python
- name: Run tests
run: pytest --junitxml=pytest-report.xml
working-directory: qualitag_python
continue-on-error: false
- name: Store test reports in case of failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports-python
path: |
**/pytest-report.xml
- name: Lint with pylint
run: find . -name "*.py" | xargs pylint | tee pylint-report.txt || true
working-directory: qualitag_python
continue-on-error: true
- name: Store lint reports
uses: actions/upload-artifact@v4
with:
name: lint-reports
path: |
**/pylint-report.txt