Skip to content

Bump actions/setup-python from 4 to 5 #93

Bump actions/setup-python from 4 to 5

Bump actions/setup-python from 4 to 5 #93

Workflow file for this run

name: pytest
on:
push:
branches:
- main
paths:
- "svgdatagrabber/**"
- "tests/**"
- ".github/workflows/pytest.yaml"
pull_request:
types: [opened, reopened, synchronize]
paths:
- "svgdatagrabber/**"
- "tests/**"
- ".github/workflows/pytest.yaml"
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Test with pytest
run: |
pytest
- uses: haya14busa/action-cond@v1
id: branch
with:
cond: ${{ github.event_name == 'pull_request' }}
if_true: ${{ github.base_ref }}
if_false: ${{ github.ref_name }}
- uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == '3.11' }}
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: coverage.xml # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
override_branch: ${{ steps.branch.outputs.value }} # optional (default = github.ref)