Skip to content

core refactoring

core refactoring #225

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: "Tests windows"
on:
push:
branches: [ dev, master ]
paths:
- '**.py'
pull_request:
branches: [ dev, master ]
paths:
- '**.py'
jobs:
tests:
runs-on: windows-latest
strategy:
matrix:
pyver: [ '3.9', '3.10' ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{matrix.pyver}}
uses: actions/setup-python@v4
with:
python-version: ${{matrix.pyver}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-timeout
if [ -f requirements_tests.txt ]; then pip install -r requirements_tests.txt; fi
shell: bash
- name: Adjust PYTHONPATH
run: echo PYTHONPATH=%cd%\src;%PYTHOPATH% >> %GITHUB_ENV%
shell: cmd
# - name: Lint with 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
- name: Test with pytest
run: |
pytest --timeout=180 --durations=10 --junitxml=tests_log_win_${{matrix.pyver}}.xml
shell: bash
- name: save result
uses: actions/upload-artifact@v3
with:
name: tests-report
path: tests_log_win_${{matrix.pyver}}.xml
if: ${{ always() }}
timeout-minutes: 30