Merge pull request #11 from HackYourFuture/feat/autograder-live-api-t… #51
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install dependencies | |
| run: uv sync --frozen | |
| - name: Lint | |
| run: uv run ruff check src/ | |
| - name: Format check | |
| run: uv run ruff format --check src/ | |
| - name: Run tests | |
| run: uv run pytest tests/ -v | |
| # Uncomment and configure once you have ACR access: | |
| # push-to-acr: | |
| # needs: lint | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Build and push | |
| # run: | | |
| # docker build --platform linux/amd64 -t hyfregistry.azurecr.io/${{ github.event.repository.name }}:${{ github.sha }} . | |
| # docker push hyfregistry.azurecr.io/${{ github.event.repository.name }}:${{ github.sha }} |