Skip to content

feat: keep trying to uninstall even if an error occurs on an earlier step #532

feat: keep trying to uninstall even if an error occurs on an earlier step

feat: keep trying to uninstall even if an error occurs on an earlier step #532

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main, "release/*"]
jobs:
check-dependencies:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
pyproject-file: "pyproject.toml"
- name: Set up Python
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Check dependencies
run: |
make check-requirements
test:
strategy:
matrix:
type:
[
lint,
test-coverage,
]
python-version: ["3.12"]
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
pyproject-file: "pyproject.toml"
- name: Set up Python
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: uv sync
- name: Run Test
run: make ${{ matrix.type }} TEST_TIMEOUT=1.0 TEST_SESSION_TIMEOUT=10.0 -k
- name: Report coverage
if: ${{ success() && contains(matrix.type, 'test-coverage') }}
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
token: ${{ secrets.CODECOV_TOKEN }} # required
# verbose: true # optional (default = false)