Skip to content

Add pytest to conda env #54

Add pytest to conda env

Add pytest to conda env #54

Workflow file for this run

name: test_package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: "ubuntu-latest"
env:
# Bandage is a Qt application; on the headless CI runner there is no
# display, so run it with the offscreen platform plugin to avoid
# "Bandage binary not found" (a non-zero exit from a failed Qt init).
QT_QPA_PLATFORM: offscreen
steps:
- uses: actions/checkout@v4
- name: "Install Conda environment with Micromamba"
uses: mamba-org/setup-micromamba@v2
with:
environment-file: conda_env.yml
environment-name: sarand
cache-environment: true
- name: "Install sarand"
shell: bash -l {0}
run: pip install '.[test]'
- name: "Run test"
shell: bash -l {0}
run: bash test/test.sh