-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.11 KB
/
ci.yml
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
---
## continuous integration workflow
name: ci
on:
pull_request:
permissions:
contents: read
jobs:
lint:
name: Run linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: false
ref: ${{ github.sha || 'main' }}
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
cache-dependency-path: pyproject.toml
- name: Lint
run: make lint
test:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: false
ref: ${{ github.sha || 'main' }}
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
cache-dependency-path: pyproject.toml
- name: test
run: make test
- name: it-test
run: make it-test
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: "**/junit-*.xml"