Revert "fix : ghcr.io/ NAMESPACE" #112
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: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| - 'feature/**' | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| cache: 'pip' # caching pip dependencies | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade pip && python -m pip install -r requirements.txt | |
| - name: Run tests | |
| run: python3 -u -m pytest tests/ | |
| - name: Verify that the Docker image for the action builds | |
| run: docker build . --file Dockerfile | |
| - name: Integration test | |
| id: integration | |
| uses: ./ | |
| with: | |
| report-files: tests/sample_report.json,tests/json_dict_div_zero_try_except.json | |
| student-files: tests/sample_code.py | |
| api-key: ${{ secrets.GOOGLE_API_KEY }} | |
| readme-path: tests/sample_readme.md | |
| explanation-in: Korean | |
| fail-expected: True | |
| timeout-minutes: 5 | |
| - name: Output the outputs of the integration test of the action | |
| run: | | |
| echo "${{ steps.integration.outputs.feedback }}" | |
| - name: Verify integration test results | |
| run: | | |
| echo "feedback=${{ steps.integration.outputs.feedback }}" >> $GITHUB_OUTPUT | |
| python3 -u -m pytest tests/integration.py |