-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (40 loc) · 993 Bytes
/
test.yml
File metadata and controls
49 lines (40 loc) · 993 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
38
39
40
41
42
43
44
45
46
47
48
49
name: Test
on:
push:
branches:
- main
- lab-1.1
- lab-1.2
- lab-1.3
- lab-2.1
- lab-2.2
- lab-2.3
- lab-2.4
pull_request:
jobs:
tests:
name: Tests Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.11', '3.12']
env:
SECRET_KEY: very-unstrustworthy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: 'pyproject.toml'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
- name: Run tests
run: |
python -m manage test
- name: Run lab tests
run: |
python -m manage test --tag lab_test