-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (38 loc) · 1.02 KB
/
integration-tests.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
name: Integration tests
on:
pull_request:
permissions:
contents: read
jobs:
verify-integration:
name: lint, test
runs-on: ubuntu-latest
strategy:
fail-fast: false # keep running if one leg fails
matrix:
python-version:
- '3.11'
defaults:
run:
working-directory: ./tests
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- name: Build the containers
run: docker compose -f ../docker-compose-dev.yaml build
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up tox environment
run: |
pver=${{ matrix.python-version }}
tox_env="-epy${pver/./}"
echo tox_env
echo TOX_ENV=$tox_env >> $GITHUB_ENV
- name: Install tox
run: |
pip install tox==4.16.0
- name: Run styles check
run: tox -elint
- name: Test using tox environment
run: |
tox ${{ env.TOX_ENV }}