Merge pull request #383 from RSE-Sheffield/feat/midwifery-tweaks #272
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: Check Gunicorn configuration | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
check-config: | |
name: Check Gunicorn configuration | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
# This should match the version used in production | |
python-version: "3.12" | |
cache: "pip" | |
- name: Install dependencies | |
run: pip install --requirement requirements.txt | |
- name: Check Gunicorn config | |
# https://docs.gunicorn.org/en/latest/configure.html | |
run: gunicorn --config ./gunicorn.conf.py --check-config SORT.wsgi:application |