Update conf.py #2548
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 * * *" # repeat every day | |
jobs: | |
ubuntu-latest: | |
name: ${{ matrix.os }}, ${{ matrix.env }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
env: | |
- .github/envs/39-latest-conda-forge.yaml | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: ${{ matrix.env }} | |
miniforge-version: latest | |
use-mamba: true | |
- name: Check Environment | |
run: | | |
python -V | |
python -c "import trackintel; trackintel.print_version();" | |
conda info | |
- name: Test with pytest | |
run: | | |
pytest -v -r s --color=yes --cov=trackintel --cov-append --cov-report term-missing --cov-report xml tests/ | |
- name: Test with PostGIS | |
if: contains(matrix.env, '39-latest-conda-forge.yaml') && contains(matrix.os, 'ubuntu') | |
env: | |
PGUSER: postgres | |
PGPASSWORD: postgres | |
PGHOST: "127.0.0.1" | |
run: | | |
conda install postgis -c conda-forge | |
source .github/envs/setup_postgres.sh | |
pytest -v -r s --color=yes --cov=trackintel --cov-append --cov-report term-missing --cov-report xml tests/io/test_postgis.py | tee /dev/stderr | if grep SKIPPED >/dev/null;then echo "TESTS SKIPPED, FAILING" && exit 1;fi | |
- name: Codecov report | |
if: contains(matrix.env, '39-latest-conda-forge.yaml') && contains(matrix.os, 'ubuntu') | |
uses: codecov/codecov-action@v1 |