[no-changelog] Rename workflow files #1
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: Check settings | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: ['master'] | |
jobs: | |
check_settings: | |
runs-on: ubuntu-latest | |
name: Check settings | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Check CSGO_API_ENABLED | |
working-directory: ./django | |
env: | |
SECRET_KEY: 'django-insecure-xw%w2h+2dig8-_b_6&1(&67=d1748ur-tt%=e#3kgi@z*##jqa' # this is the uncritical SECRET_KEY from development.py | |
run: | | |
python -c "import csgo_app.settings.development; assert not csgo_app.settings.development.CSGO_API_ENABLED" | |
python -c "import csgo_app.settings.production; assert csgo_app.settings.production.CSGO_API_ENABLED" |