fix: Contributor backend 31 #35
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: Validate Existing Contributors | |
on: | |
pull_request: | |
workflow_call: | |
env: | |
PYTHON_VERSION: 3.12 | |
WORKING_DIR: codeforlife-contributor-backend/.github/scripts/python/validate-existing-contributors | |
jobs: | |
validate-existing-contributors: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛫 Checkout Pull Request | |
uses: actions/checkout@v4 | |
- name: 🔎 View Pull Request's Commits | |
id: view-pr | |
run: echo "PULL_REQUEST=$(gh pr view ${{ github.event.pull_request.number }} --json commits)" >> $GITHUB_OUTPUT | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🛫 Checkout Contributor Backend | |
uses: actions/checkout@v4 | |
with: | |
repository: ocadotechnology/codeforlife-contributor-backend | |
ref: development | |
path: codeforlife-contributor-backend | |
- name: 🐍 Set up Python ${{ env.PYTHON_VERSION }} Environment | |
uses: ocadotechnology/codeforlife-workspace/.github/actions/python/setup-environment@main | |
with: | |
checkout: "false" | |
python-version: ${{ env.PYTHON_VERSION }} | |
working-directory: ${{ env.WORKING_DIR }} | |
- name: 📦 Install Dependencies with Pipenv | |
working-directory: ${{ env.WORKING_DIR }} | |
run: pipenv install | |
- name: 🕵️ Validate Existing Contributors | |
working-directory: ${{ env.WORKING_DIR }} | |
run: pipenv run python . | |
env: | |
PULL_REQUEST: ${{ steps.view-pr.outputs.PULL_REQUEST }} |