Fix tests #19
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: GitHub Classroom Autograding | |
| on: | |
| - push | |
| - repository_dispatch | |
| permissions: | |
| checks: write | |
| actions: read | |
| contents: read | |
| jobs: | |
| autograding: | |
| name: Autograding | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'github-classroom[bot]' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install rich tomli | |
| - name: Run tests | |
| id: tests | |
| uses: panjd123/autograding-command-grader@v1 | |
| with: | |
| test-name: tests | |
| setup-command: | | |
| make all | |
| command: python3 grader.py --write-result | |
| timeout: 10 | |
| max-score: 100 | |
| - name: Report results | |
| uses: panjd123/autograding-grading-reporter@v1 | |
| env: | |
| TESTS_RESULTS: ${{ steps.tests.outputs.result }} | |
| with: | |
| runners: tests |