Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testovani main.py pres pytest #301

Merged
merged 12 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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