-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 1.41 KB
/
test.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
57
58
59
60
61
62
63
64
65
66
67
name: test
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
schedule:
- cron: '0 8 * * 1-5' # At 08:00 on every day-of-week from Monday through Friday.
workflow_dispatch:
defaults:
run:
shell: bash -ieo pipefail {0}
jobs:
test:
name: ${{ matrix.test-type }} ${{ matrix.os }} python${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-22.04"
# - "macos-12"
# - "windows-2022"
python-version:
- "3.10"
- "3.11"
test-type:
- "acceptance"
- "functional"
- "performance"
- "property"
- "security"
- "smoke"
- "unit"
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: install python${{ matrix.python-version }}
id: install-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: cache python dependencies
uses: actions/cache@v3
with:
path: .venv
key: python-${{ steps.install-python.outputs.python-version }}-${{ matrix.os }}-${{ hashFiles('pyproject.toml') }}
- name: setup
run: scripts/setup
- name: run tests
run: scripts/test-${{ matrix.test-type }}