Skip to content

build(deps-dev): update pre-commit requirement from ~=3.5.0 to >=3.5,<3.7 #154

build(deps-dev): update pre-commit requirement from ~=3.5.0 to >=3.5,<3.7

build(deps-dev): update pre-commit requirement from ~=3.5.0 to >=3.5,<3.7 #154

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
standard:
name: Lint and test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install
run: pip install '.[dev]'
- name: Lint
run: pre-commit run --all-files
- name: Test
run: pytest
codecov:
name: Codecov
needs:
- standard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install
run: pip install '.[dev]'
- name: Test
run: pytest --cov=stactask
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: false