Start separation of unit tests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: All Tests | |
on: | |
push: | |
paths: | |
- src/** | |
- test/** | |
- .github/** | |
- pyproject.toml | |
- poetry.lock | |
schedule: | |
- cron: 0 12 * * 6 | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.action_path }}-${{ github.ref }}-test-all | |
cancel-in-progress: false | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.8", "3.13"] | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: "x64" | |
- name: Install Poetry | |
run: pip install poetry==1.8.4 | |
- name: Install basic dependencies | |
run: poetry install --no-cache | |
- name: Prepare environment for all tests | |
run: poetry run poe prepare-test-all | |
- name: Run all tests | |
run: poetry run poe test-all | |
- name: Create XML coverage files | |
run: poetry run coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
env_vars: OS,PYTHON | |
flags: all | |
files: ./coverage.xml | |
verbose: true |