Feat/Compact Admins can determine if state is ready to 'go live' through configuration settings #1268
Workflow file for this run
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-Python | |
on: | |
pull_request: | |
paths: | |
- backend/** | |
env: | |
AWS_REGION : "us-east-1" | |
# Permission can be added at job level or workflow level | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
LintPython: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Install dev dependencies | |
run: "pip install -r backend/compact-connect/requirements-dev.txt" | |
- name: Lint Code | |
run: "cd backend; ruff check $(git ls-files '*.py')" | |
TestPython: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Install dev dependencies | |
run: "pip install -r backend/compact-connect/requirements-dev.txt" | |
- name: Install all dependencies | |
run: "cd backend; bin/sync_deps.sh" | |
- name: Test backend | |
run: "cd backend; bin/run_tests.sh -l python -no" | |
- name: Check Dependencies | |
run: "pip-audit" |