Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
],
"postCreateCommand": {
"set-ownership": "sudo chown vscode target /usr/local/cargo/registry/",
"install-python-deps": "task install-maturin",
// Disabling because of the issues in #3709
// "install-python-deps": "task install-maturin && task install-pre-commit && pre-commit install-hooks",
"install-python-deps": "pipx install uv && task install-maturin && uv tool install pre-commit",
"install-npm-dependencies": "task install-npm-dependencies"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
- Taskfile.yaml
devcontainer-build:
- .devcontainer/**/*Dockerfile
- .devcontainer/devcontainer.json
- .github/workflows/build-devcontainer.yaml
- Taskfile.yaml
grammars:
Expand Down Expand Up @@ -546,6 +547,23 @@ jobs:
# This needs to compare to the string `'true'`, because of GHA awkwardness
push: ${{ needs.rules.outputs.devcontainer-push == 'true' }}

test-devcontainer:
runs-on: ubuntu-24.04
needs: rules
if: needs.rules.outputs.devcontainer-build == 'true'
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- name: Build and run devcontainer
uses: devcontainers/ci@v0.3
with:
runCmd: |
set -euxo pipefail
task --version
pre-commit --version
cargo --version
node --version

test-msrv:
runs-on: ubuntu-24.04
needs: rules
Expand Down Expand Up @@ -601,6 +619,7 @@ jobs:
needs:
- build-devcontainer
- build-web
- test-devcontainer
- check-links-book
- check-links-markdown
- lint-megalinter
Expand Down Expand Up @@ -646,6 +665,7 @@ jobs:
[
"build-devcontainer",
"build-web",
"test-devcontainer",
"check-links-book",
"check-links-markdown",
"lint-megalinter",
Expand Down
Loading