Skip to content

Ignore spaces at the ends of lines in the MetaTest StringReplacementEvaluator, fixes #156 #232

Ignore spaces at the ends of lines in the MetaTest StringReplacementEvaluator, fixes #156

Ignore spaces at the ends of lines in the MetaTest StringReplacementEvaluator, fixes #156 #232

name: assignments_test_docker
on: [push, pull_request, workflow_dispatch]
env:
# PR: github.sha is the SHA of the PR, not commit, we can't check this out
GHA_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
# PR: github.repository is the repository the PR is made in, not the fork
GHA_REPO: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name || github.repository }}
jobs:
run_assignments_docker:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Configure Makefile.inc to use tar instead of gtar
working-directory: ./weblab-docker
run: |
sed -i 's/gtar/tar/' Makefile.inc
- name: Build Docker image
working-directory: ./weblab-docker
env:
BUILD_ARGS: "--build-arg ANDY_BRANCH=${{ env.GHA_SHA }} --build-arg ANDY_REPO=${{ env.GHA_REPO }}"
run: |
make
- name: Run the reference solutions of one assignment per category and verify the scores are 100/100
env:
# github.repository contains owner, we don't want that
REPO_NAME: ${{ github.event.repository.name }}
COMMIT_HASH: ${{ env.GHA_SHA }}
run: |
python ./.github/scripts/assignments_test_docker.py