Skip to content

[pre-commit.ci] pre-commit autoupdate #51

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #51

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {}
jobs:
tests:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
env:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
activate-environment: vtc_code
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Run tests
shell: bash -l {0}
run: |
pytest