-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (39 loc) · 956 Bytes
/
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
name: Tests
on:
push:
branches:
- master
- test
paths-ignore:
- README.md
- LICENSE
- CHANGELOG
- .gitignore
jobs:
linux:
name: Linux, Python ${{ matrix.python }}, environment ${{ matrix.env }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- {python: "3.9", env: "1"}
- {python: "3.9", env: "2"}
- {python: "3.9", env: "3"}
- {python: "3.9", env: "4"}
steps:
- name: Cache dependencies
uses: actions/cache@v2
with:
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
path: |
~/.cache
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Run tests
run: ./ci.sh test "$ENV"
env:
ENV: ${{ matrix.env }}