-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 982 Bytes
/
python-test.yml
File metadata and controls
34 lines (34 loc) · 982 Bytes
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
name: Python Unit Tests
on: [pull_request]
permissions:
checks: write
pull-requests: write
jobs:
run-python-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test_requirements.txt
- name: Run tests
run: |
python -m pytest --junitxml=junit/test-results.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
check_name: 'Python Test Results'
junit_files: '**/server/junit/*.xml'