feat: add support for configurable gradescope url #40 #119
Workflow file for this run
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: Deploy API and Automate Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.10.16 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.10.16 | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v4 | |
- name: Install PDM dependencies and initialize project repository | |
run: pdm install | |
- name: Activate Virtual Environment | |
run: pdm venv activate | |
- name: Install pip and other dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install types-beautifulsoup4 types-requests | |
pip install -r requirements.txt | |
- name: Format code | |
run: pdm format | |
# - name: Lint code | |
# run: pdm lint | |
- name: Run Tests | |
run: pdm test | |
env: | |
GRADESCOPE_CI_STUDENT_EMAIL: ${{ secrets.GRADESCOPE_CI_STUDENT_EMAIL }} | |
GRADESCOPE_CI_STUDENT_PASSWORD: ${{ secrets.GRADESCOPE_CI_STUDENT_PASSWORD }} | |
GRADESCOPE_CI_INSTRUCTOR_EMAIL: ${{ secrets.GRADESCOPE_CI_INSTRUCTOR_EMAIL }} | |
GRADESCOPE_CI_INSTRUCTOR_PASSWORD: ${{ secrets.GRADESCOPE_CI_INSTRUCTOR_PASSWORD }} | |
GRADESCOPE_CI_TA_EMAIL: ${{ secrets.GRADESCOPE_CI_TA_EMAIL }} | |
GRADESCOPE_CI_TA_PASSWORD: ${{ secrets.GRADESCOPE_CI_TA_PASSWORD }} |