Skip to content

Commit

Permalink
windows, vic verzi, skoro vsechny testy
Browse files Browse the repository at this point in the history
  • Loading branch information
kokes committed Jul 29, 2024
1 parent 764b904 commit b41f416
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:

jobs:
test:
runs-on: ubuntu-latest # TODO: pustit na windows
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
python-version: ['3.12'] # TODO: docasne - mozna udelat jen min/max? I.e. 3.9 a 3.12 treba
# python-version: ['3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-latest', 'windows-latest']
python-version: ['3.18', '3.12']

steps:
- uses: actions/checkout@v4
Expand All @@ -25,8 +25,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
# TODO: testovat partial jen s nekteryma verzema Py
- name: Test with pytest
pip install pytest pytest-xdist
- name: pytest (pipeliny)
run: |
python3 -m pytest -v
python3 -m pytest -v data
- name: pytest (main)
run: |
python3 -m pytest -v -n 5 --durations=5 main_test.py
21 changes: 20 additions & 1 deletion main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@
["module"],
[
("ares",),
# ("red",),
("cssz",),
# czechinvest uplne zrusil svoje data asi - poptavam
# ("czechinvest",), # TODO
("czechpoint",),
("datovky",),
("dotinfo",),
("eufondy",),
("iissp",),
("justice",),
# TODO: psp ma problem s konektivitou
# ("psp",),
# ("steno",),
("red",),
("res",),
("ruian",),
("smlouvy",),
("szif",),
("udhpsh",),
("volby",),
("zakazky",),
],
)
def test_partial(tmp_path, module):
Expand Down

0 comments on commit b41f416

Please sign in to comment.