Skip to content

[MNT] Bump codecov/codecov-action from 4 to 5 in the github-actions group #42

[MNT] Bump codecov/codecov-action from 4 to 5 in the github-actions group

[MNT] Bump codecov/codecov-action from 4 to 5 in the github-actions group #42

Workflow file for this run

name: PR pytest
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "tsml/**"
- ".github/workflows/**"
- "pyproject.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, windows-2022 ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
# skip python versions unless the PR has the 'full pytest actions' label
pr-testing:
- ${{ (github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'full pytest actions')) }}
exclude:
- pr-testing: true
python-version: "3.10"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[dev,all_extras]
- name: Show dependencies
run: python -m pip list
- name: Tests
run: python -m pytest -n logical
codecov:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Disable Numba JIT
run: echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV
- name: Install
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: python -m pip install .[all_extras,dev,unstable_extras]
- name: Tests
run: python -m pytest -n logical --cov=tsml_eval --cov-report=xml --timeout 1800
- uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}