chore: script for rebuilding base grader image and removing all curre… #365
This file contains 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: "Development - CI Testing for Code Quality" | |
on: [push] | |
jobs: | |
grading_vm: | |
name: "Worker Tests" | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: worker | |
strategy: | |
matrix: | |
python-version: ["3.10.6"] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: set up python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: run tests | |
run: python -m orca_grader.tests.runner | |
web_server: | |
name: "Web Server Tests" | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: orchestrator | |
strategy: | |
matrix: | |
node-version: ["20.11.0"] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "21.0.0" | |
- name: "Install dependencies" | |
run: yarn --frozen-lockfile | |
- run: yarn workspaces run build | |
- run: yarn test |