Skip to content

fix: errors running the test #2114

fix: errors running the test

fix: errors running the test #2114

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- '**'
jobs:
cleanup-runs:
runs-on: ubuntu-latest
if: "!startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref, 'main')"
steps:
- uses: rokroskar/workflow-run-cleanup-action@v0.3.3
env:
GITHUB_TOKEN: ${{ github.token }}
build:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', 3.11]
exclude:
- platform: ubuntu-latest
python-version: 3.6
- platform: macos-latest
python-version: 3.11
- platform: windows-latest
python-version: 3.6
- platform: windows-latest
python-version: 3.11
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/requirements.txt'
- name: Install dependencies
run: |
make install-test
- name: Run test
run: make tox
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
PLATFORM: ${{ matrix.platform }}
- name: "Upload coverage to Codecov"
if: ${{ runner.os == 'Linux' && matrix.python-version == '3.9' }}
uses: codecov/codecov-action@v4.3.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true