Skip to content

v0.2.0 release prep (#57) #134

v0.2.0 release prep (#57)

v0.2.0 release prep (#57) #134

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@v4
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@v4
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