TEMP FIX deploy pages from docs dir. WIP to deploy using git actions #5
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: Run Tests | |
env: | |
ENV_FILE: environment.yml | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
on: | |
push: | |
branches: | |
- main | |
- sg_docs | |
pull_request: | |
branches: | |
- main | |
- sg_docs | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Activate Conda Environment | |
uses: ./.github/actions/setup-conda | |
with: | |
environment-file: ${{ env.ENV_FILE }} | |
activate-environment: test | |
- name: Run pytest | |
run: | | |
pytest | |
shell: bash -el {0} | |
- name: Publish Test Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test results | |
path: test-data.xml |