-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (43 loc) · 986 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
45
46
47
48
# Authored by Alexandra N. Walker <[email protected]> ☀️
name: Tests
on:
push:
branches:
- main
paths:
- 'examples/**'
- 'controller/**'
pull_request:
branches:
- main
paths:
- 'examples/**'
- 'controller/**'
env:
POETRY_VERSION: 1.5.1
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run integration tests for protocols
run: |
docker-compose run tests tests/
examples:
name: Check examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==${{ env.POETRY_VERSION}}
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: poetry
- name: Install dependencies
run: poetry install
- name: Run examples
run: |
poetry run pytest -m examples