Skip to content

Commit 9c07445

Browse files
committed
workflow: Run tests using project devcontainer image
1 parent 7b12ef2 commit 9c07445

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/vscode-pr.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ jobs:
7272
test:
7373
name: "Python v${{ matrix.python-version }}"
7474
runs-on: ubuntu-latest
75+
container:
76+
image: ghcr.io/swyddfa/esbonio-devenv
77+
credentials:
78+
username: ${{ github.actor }}
79+
password: ${{ secrets.github_token }}
80+
7581
timeout-minutes: 20
7682
strategy:
7783
fail-fast: false
@@ -81,18 +87,6 @@ jobs:
8187
steps:
8288
- uses: actions/checkout@v4
8389

84-
- uses: 'actions/setup-node@v4'
85-
with:
86-
node-version: 20.x
87-
cache: 'npm'
88-
cache-dependency-path: 'code/package-lock.json'
89-
90-
- name: Setup Python ${{ matrix.python-version }}
91-
uses: actions/setup-python@v5
92-
with:
93-
python-version: ${{ matrix.python-version }}
94-
allow-prereleases: true
95-
9690
- run: |
9791
cd code/
9892
make dev-deps

code/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ bundled/env/.installed: requirements-env.txt | $(PY39)
7272
touch $@
7373

7474
node_modules/.installed: package.json package-lock.json | $(NPM)
75-
$(NPM) ci
75+
PATH=$(BIN) $(NPM) ci
7676
touch $@

0 commit comments

Comments
 (0)