-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (95 loc) · 2.82 KB
/
workflow-test-fast.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Fast Test Workflow
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Run flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
- name: Run black
run: |
black . --check
pytest-fast:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
case:
- reporting
- negotiation
- negotiation_quick
- below_threshold
- below_threshold_multilot
- above_threshold_eu
- above_threshold_eu_multilot
- above_threshold_eu_plan
- above_threshold_eu_tender
- above_threshold_ua
- above_threshold_ua_multilot
- above_threshold_ua_features
- above_threshold_ua_multilot_features
- above_threshold_ua_lcc
- above_threshold_ua_multilot_lcc
- close_framework_agreement_ua
- close_framework_agreement_ua_central
- competitive_dialogue_eu
- competitive_dialogue_ua
- esco
- esco_features
- esco_multilot
- simple_defense
env:
PYTHONUNBUFFERED: 1
steps:
- uses: actions/checkout@v2
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Kiev
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Run pytest
env:
FAST_RUN: 1
API_HOST: ${{ secrets.API_HOST }}
API_TOKEN: ${{ secrets.API_TOKEN }}
DS_HOST: ${{ secrets.DS_HOST }}
DS_USERNAME: ${{ secrets.DS_USERNAME }}
DS_PASSWORD: ${{ secrets.DS_PASSWORD }}
run: |
pytest procedure_tools/test.py::test_${{ matrix.case }}