-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (47 loc) · 1.04 KB
/
tests.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
50
51
52
53
54
55
name: "Tests"
on:
pull_request:
paths:
- ".github/workflows/tests.yml"
- "argo_jupyter_scheduler/**"
push:
branches:
- main
jobs:
pre-commit:
name: "pre-commit"
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Setup Python"
uses: actions/setup-python@v3
- name: "Run pre-commit"
uses: pre-commit/[email protected]
pytest:
name: "pytest"
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
fail-fast: false
steps:
- name: "Checkout repo"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Setup Python"
uses: actions/setup-python@v3
- name: "Install package"
run: |
pip install .[dev]
- name: "Test package"
run: |
pytest --version
pytest -vvv