Skip to content

Commit 5a6b490

Browse files
committed
more swinging at npm and conda
1 parent 46e03ec commit 5a6b490

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
uses: conda-incubator/setup-miniconda@v2.2.0
3535
with:
3636
environment-file: environment-dev.yml
37+
activate-environment: galaxy
3738
use-only-tar-bz2: true
3839
- name: Set up NodeJS environment
3940
uses: actions/setup-node@v3
@@ -65,8 +66,7 @@ jobs:
6566
working-directory: ./frontend
6667
- name: Verify generated types are up-to-date
6768
run: |
68-
# Activate conda environment and run the type generation script
69-
conda activate galaxy
69+
# Run the type generation script (conda environment 'galaxy' is already activated)
7070
./generate_types.sh
7171
# Check if any files were modified
7272
git diff --exit-code src/api/_autogen/ || (echo "ERROR: Generated TypeScript types are out of date. Please run ./generate_types.sh and commit the changes." && exit 1)
@@ -89,6 +89,7 @@ jobs:
8989
uses: conda-incubator/setup-miniconda@v2.2.0
9090
with:
9191
environment-file: environment-dev.yml
92+
activate-environment: galaxy
9293
use-only-tar-bz2: true
9394
- name: Set up NodeJS environment
9495
uses: actions/setup-node@v3
@@ -119,6 +120,7 @@ jobs:
119120
uses: conda-incubator/setup-miniconda@v2.2.0
120121
with:
121122
environment-file: environment-dev.yml
123+
activate-environment: galaxy
122124
use-only-tar-bz2: true
123125
- name: Initialize migrations
124126
run: ./manage.py makemigrations

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ repos:
6262

6363
- id: tsc-frontend
6464
name: tsc-frontend
65-
entry: bash -c 'cd frontend && npx tsc --noEmit'
65+
entry: bash -c 'cd frontend && npx --no-install tsc --noEmit'
6666
language: system
6767
files: ^frontend/src/.*\.(ts|tsx)$
6868
pass_filenames: false
6969

7070
- id: eslint-frontend
7171
name: eslint-frontend
72-
entry: bash -c 'cd frontend && npx eslint'
72+
entry: bash -c 'cd frontend && npx --no-install eslint'
7373
language: system
7474
files: ^frontend/src/.*\.(ts|tsx)$
7575
pass_filenames: true

0 commit comments

Comments
 (0)