CI Linux #4
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 Linux | |
on: | |
push: | |
branch: | |
- master | |
pull_request: | |
branch: | |
- master | |
schedule: | |
- cron: 0 7 * * 5 | |
jobs: | |
run: | |
name: Run pipeline | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: testenv | |
auto-update-conda: false | |
environment-file: environment.linux-64.lock | |
- name: Install and check env | |
run: | | |
conda activate testenv | |
pip install .[dev] | |
conda info | |
conda list | |
dbspro --version | |
- name: Run flake8 | |
run: | | |
conda activate testenv | |
flake8 src/ tests/ | |
flake8 --select=W292 --filename '*.yaml,*.yml' | |
- name: Download test dataset | |
env: | |
testdata_version: "0.4" | |
run: | | |
wget -nv https://export.uppmax.uu.se/uppstore2018173/DBS-Pro-testdata-${testdata_version}.tar.gz | |
tar xf DBS-Pro-testdata-${testdata_version}.tar.gz | |
ln -s DBS-Pro-testdata-${testdata_version} testdata | |
- name: Run tests | |
run: | | |
conda activate testenv | |
# Required to make umi-tools output consistent. | |
export PYTHONHASHSEED=1 | |
pytest -v tests/ |