-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (41 loc) · 1.34 KB
/
python-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
50
51
52
53
name: Python Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dev dependencies
run: pip install -r requirements-dev.txt
- name: Install dataclasses on Python 3.6
run: pip install dataclasses
if: matrix.python-version == '3.6'
- name: Set up local development Tarallo instance
run: |
git clone https://github.com/weee-open/tarallo
cd tarallo || exit
make ci
make up
cd - &> /dev/null
- name: Create test .env file to access local Tarallo instance
run: |
echo "export TARALLO_URL=http://127.0.0.1:8080" >> .env
echo "export TARALLO_TOKEN=yoLeCHmEhNNseN0BlG0s3A:ksfPYziGg7ebj0goT0Zc7pbmQEIYvZpRTIkwuscAM_k" >> .env
# - name: Run tests
# uses: GabrielBB/xvfb-action@v1
# with:
# run: pytest -vv tests
- name: Run tests
run: pytest -vv tests -m "not gui"