Skip to content

fix/update CODECOV #796

fix/update CODECOV

fix/update CODECOV #796

Workflow file for this run

name: CI
on: [ push, pull_request ]
jobs:
prep-tests:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-vars.outputs.matrix }}
date: ${{ steps.set-vars.outputs.date }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install tox
- name: Generate matrix & vars
id: set-vars
run: python helper/github-ci-vars.py
tests:
needs: prep-tests
runs-on: ubuntu-20.04
name: tests-${{ matrix.setup.toxenv }}
continue-on-error: ${{ matrix.setup.experimental }}
strategy:
matrix:
setup: ${{ fromJson(needs.prep-tests.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ needs.prep-tests.date }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.setup.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y gdal-bin libsqlite3-mod-spatialite
- name: Install tox
run: pip install tox
- name: Run Tox
run: tox --skip-missing-interpreters=false -e ${{ matrix.setup.toxenv }}
- uses: codecov/codecov-action@v4
with:
name: ${{ matrix.setup.toxenv }}
token: ${{ secrets.CODECOV_TOKEN }}
passed-tests:
name: Required tests passed
needs: [ tests ]
runs-on: ubuntu-latest
steps:
- run: echo "All Done"