From b41f4162d3011848b2684928e4cd0acf764bbe36 Mon Sep 17 00:00:00 2001 From: Ondrej Kokes Date: Mon, 29 Jul 2024 12:36:48 +0200 Subject: [PATCH] windows, vic verzi, skoro vsechny testy --- .github/workflows/test.yaml | 16 +++++++++------- main_test.py | 21 ++++++++++++++++++++- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 304cf11..b394e7d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -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 diff --git a/main_test.py b/main_test.py index 70c9c08..32e50d8 100644 --- a/main_test.py +++ b/main_test.py @@ -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):