From 266a03b03d381ea8f1337d52985c34431a511180 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 30 Sep 2021 04:36:00 -0700 Subject: [PATCH] Test application on Push or PR using Github Actions --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..f70b5eaf --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: Run Tests on Push or PR + +on: + pull_request: + branches: + - 'master' + push: + branches: + - 'master' + +jobs: + test: + name: Run Tests + runs-on: "ubuntu-latest" + defaults: + run: + shell: bash -l {0} + + steps: + - uses: actions/checkout@v2 + - uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: test + environment-file: environment.yml + python-version: 3.8 + auto-activate-base: false + - name: Conda Info + run: | + conda info + conda list + - name: Run Pytest + run: | + conda install pytest + python -m pytest