-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (47 loc) · 1.02 KB
/
testing.yaml
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
name: testing
on:
push:
branches:
- devel
- master
pull_request:
branches:
- devel
- master
jobs:
setup:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: |
pipx install poetry
- name: Set up Python
id: python
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-python@v4
with:
cache: 'poetry'
- name: Install dependencies
if: steps.python.outputs.cache-hit != 'true'
run: |
poetry install --no-root
test:
needs: setup
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: |
pipx install poetry
- name: Set up Python
id: python
uses: actions/setup-python@v4
with:
cache: 'poetry'
- name: Install package
run: |
poetry install
- name: Run tests
run: |
poetry run -- make test