CI #129
Workflow file for this run
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
defaults: | |
run: | |
shell: bash -l {0} # a login shell is required for conda activation | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: cache-conda | |
uses: actions/cache@v3 | |
env: | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} | |
- name: Create Conda environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
environment-file: conda-linux-64.lock | |
use-only-tar-bz2: true | |
- name: Install test dependencies | |
run: conda install -c conda-forge pytest pip tox | |
- name: Install R revealjs | |
run: R -e "install.packages('revealjs', repos='https://cran.rstudio.com/')" | |
- name: Install nbis-project-admin | |
run: pip install --no-deps . | |
- name: Run tests | |
run: pytest | |
- name: Run tox to test installation of project | |
run: python -m tox -e project |