Add webhook example #20
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: Test judge0-py | |
on: | |
push: | |
branches: ["master"] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
pipenv install --dev | |
pipenv install -e . | |
- name: Test with pytest | |
env: # Add necessary api keys as env variables. | |
JUDGE0_ATD_API_KEY: ${{ secrets.JUDGE0_ATD_API_KEY }} | |
JUDGE0_RAPID_API_KEY: ${{ secrets.JUDGE0_RAPID_API_KEY }} | |
JUDGE0_SULU_API_KEY: ${{ secrets.JUDGE0_SULU_API_KEY }} | |
run: | | |
pipenv run pytest -vv |