Skip to content

Commit

Permalink
Made it run on both PRs and main
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Jul 19, 2024
1 parent bdff0fa commit ddbc399
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
modal_deply:
Expand All @@ -21,10 +24,11 @@ jobs:
env: # SEE: https://modal.com/docs/guide/environment_variables#runtime-environment-variables
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
CHEMENV_NAME: "-dev"
# name is -dev in PRs and empty in main branch
CHEMENV_NAME: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' && '' || '-dev' }}
- name: Run tests
run: pytest tests/
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
CHEMENV_NAME: "-dev"
CHEMENV_NAME: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' && '' || '-dev' }}

0 comments on commit ddbc399

Please sign in to comment.