-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (35 loc) · 1.14 KB
/
ci.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
name: Continuous integration
on: [push, pull_request]
jobs:
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install python dependencies (prospector, etc.)
run: |
pip install -e .[dev]
pip freeze
- name: Run pre-commit
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
dockertests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install python dependencies (pytest, etc.)
run: |
pip install -e .[dev]
pip freeze
- name: Start containers
run: docker-compose -f "docker-compose-tests.yml" up -d --build
- name: Wait for the service to be ready
run: ./.ci/wait-for-it.sh localhost:8090 -t 120 && sleep 5
- name: Run pytest
run: pytest --driver Remote --capability browserName firefox .