Skip to content

Commit

Permalink
update workflow to select correct env file by os
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewq11 committed Nov 8, 2024
1 parent fcfef1a commit 582ae82
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
schedule:
- cron: "0 4 * * *"

env:
ENV_FILE: "env.yml"

jobs:
test:
strategy:
Expand All @@ -34,11 +37,17 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v3

- name: Set OS-specific environment file to use
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
echo "ENV_FILE=env_windows.yml" >> $GITHUB_ENV;
fi
- name: Setup mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: env.yml
environment-file: ${{ env.ENV_FILE }}
environment-name: graphium
cache-environment: true
cache-downloads: true
Expand Down

0 comments on commit 582ae82

Please sign in to comment.