Add instruction cache and store-load forwarding #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: DevContainer CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache Docker layers | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/devcontainers | |
| key: devcontainer-${{ hashFiles('.devcontainer/Dockerfile', '.devcontainer/devcontainer.json') }} | |
| restore-keys: | | |
| devcontainer- | |
| - name: Run tests in DevContainer | |
| uses: devcontainers/ci@v0.3 | |
| with: | |
| runCmd: | | |
| python3 -m venv tests/.venv | |
| tests/.venv/bin/pip install --upgrade pip | |
| tests/.venv/bin/pip install -r tests/requirements.txt | |
| tests/.venv/bin/pytest -v tests/ |