-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 860 Bytes
/
tests.yml
File metadata and controls
37 lines (30 loc) · 860 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
35
36
37
name: Test and Comment
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened, edited]
permissions:
checks: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install dependencies
run: |
pip install --upgrade pip && pip install virtualenv && virtualenv .venv
make install-flit && FLIT_ROOT_INSTALL=1 make install-dev
- name: Run Python tests
run: .venv/bin/python -m pytest --junit-xml=test-results/results.xml
- name: Comment on PR
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
test-results/**/*.xml