fix git test #16
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: test-linux-conda | |
on: | |
pull_request: | |
push: | |
branches: master | |
jobs: | |
# label of the job | |
tests: | |
name: Tests | |
# containers must run in Linux based operating systems | |
runs-on: ubuntu-latest | |
# Do not ignore bash profile files. From: | |
# https://github.com/marketplace/actions/setup-miniconda | |
defaults: | |
run: | |
shell: bash -l {0} | |
# Docker Hub image that `postgres-job` executes in | |
container: node:latest | |
# service containers to run with `postgres-job` | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
channels: defaults | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
auto-update-conda: true | |
auto-activate-base: true | |
- name: Install flask check if footsteps sees it | |
run: | | |
echo "begin: PATH=$PATH;" | |
conda create -y --name myenv flask | |
conda activate myenv | |
conda install pip | |
pip install -e . | |
python -m unittest | |
grep -Fq "Flask" results/my_results_name/package_versions.txt | |