From 5e6faa4b025d01cfad29fa128691401caac8dde8 Mon Sep 17 00:00:00 2001 From: Alok Saldanha Date: Thu, 31 Dec 2020 13:06:56 -0500 Subject: [PATCH 1/2] run pr checks on push --- .github/workflows/pr-checks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index 9189424..caa1e9a 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -2,7 +2,7 @@ name: Pull Request Checks -on: [pull_request] +on: [push, pull_request] jobs: black: From 49d679e77934f91df45e092f5ac63fc2360e819b Mon Sep 17 00:00:00 2001 From: Alok Saldanha Date: Thu, 31 Dec 2020 13:19:42 -0500 Subject: [PATCH 2/2] try evaling the bash hook per https://github.com/conda/conda/issues/7980 --- .github/workflows/pr-checks.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index caa1e9a..5953b94 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -37,11 +37,13 @@ jobs: - name: Build environment run: | conda env create -f environment.yml + eval "$(conda shell.bash hook)" conda activate cellxgene-gateway python setup.py install - name: Run tests run: | + eval "$(conda shell.bash hook)" conda activate cellxgene-gateway python -m unittest discover tests bash <(curl -s https://codecov.io/bash)