Skip to content

Commit bf08c2a

Browse files
committed
ci: use bash -el so conda env is active in all steps (setup-miniconda IMPORTANT)
Made-with: Cursor
1 parent 6d676d7 commit bf08c2a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/main.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
cancel-in-progress: true
3434
defaults:
3535
run:
36-
shell: bash -l {0}
36+
# bash -el required so conda activation persists (README: IMPORTANT)
37+
shell: bash -el {0}
3738
steps:
3839
- uses: actions/checkout@v4
3940

@@ -56,13 +57,11 @@ jobs:
5657
- name: Linter
5758
if: ${{ github.event_name == 'pull_request' }}
5859
run: |
59-
conda activate osl-web
6060
pre-commit install
6161
pre-commit run --all-files --verbose
6262
6363
- name: Build the book
6464
run: |
65-
conda activate osl-web
6665
makim pages.build
6766
echo "opensciencelabs.org" > build/CNAME
6867

0 commit comments

Comments
 (0)