forked from malariagen/malariagen-data-python
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 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
name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
poetry-version: ["1.3.1"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Restore GCS cache
uses: actions/cache/restore@v3
with:
path: gcs_cache
key: gcs_cache_tests
- name: Install poetry
run: pipx install poetry==${{ matrix.poetry-version }}
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest -v
- name: Save GCS cache
uses: actions/cache/save@v3
# if: always()
with:
path: gcs_cache
key: gcs_cache_tests