-
-
Notifications
You must be signed in to change notification settings - Fork 111
56 lines (56 loc) · 1.37 KB
/
ci-core.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
56
name: test-core
on: [push, pull_request]
jobs:
lint-python:
name: lint-python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install ruff
run: |
pip install .[dev]
- name: Lint Python
run: |
ruff .
test-minimal-deps:
name: test-minimal-deps
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.12"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install packages
run: |
pip install pytest
pip install --no-cache-dir .
- name: Run test suite
run: |
pytest tests/
test-full-deps:
name: test-full-deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install packages
run: |
pip install pytest
pip install --upgrade setuptools>=41.0.0
pip install --no-cache-dir .[test]
pip install --no-cache-dir .
- name: Run test suite
run: |
pytest tests/