Skip to content

Commit

Permalink
Testovani main.py pres pytest (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
kokes authored Aug 2, 2024
1 parent d652e80 commit dda4724
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 1,124 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/partial.yaml

This file was deleted.

28 changes: 14 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 5
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
# dataset: ["ares", "cedr", "cssz", "datovky", "dotinfo", "iissp", "psp.steno", "szif"]
os: ['ubuntu-latest', 'windows-latest']
python-version: ['3.8', '3.12']

steps:
- uses: actions/checkout@v4
Expand All @@ -26,12 +28,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Test with pytest
pip install pytest pytest-xdist
- name: pytest (pipeliny)
run: |
python3 -m pytest -v data
- name: pytest (main)
run: |
pytest -v data/steno/
# TODO: doresit problem s importy
# TODO: vypnute, protoze vzdycky aspon jeden job spadnul kvuli random timeoutu
# - name: Try all pipelines
# run: |
# python3 main.py --partial ${{ matrix.dataset }}
python3 -m pytest -v -n 4 --durations=5 main_test.py
Empty file added __init__.py
Empty file.
1 change: 0 additions & 1 deletion data/cssz/README.md

This file was deleted.

71 changes: 0 additions & 71 deletions data/cssz/main.py

This file was deleted.

Loading

0 comments on commit dda4724

Please sign in to comment.