Potential fix for code scanning alert no. 3: Reflected server-side cr… #730
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: CI | |
| on: | |
| push: | |
| paths-ignore: | |
| - '.cookiecutter/*' | |
| - 'docs/*' | |
| - 'requirements/*.in' | |
| - 'requirements/dev.txt' | |
| - '**/.gitignore' | |
| - '*.md' | |
| - 'LICENSE' | |
| workflow_call: | |
| jobs: | |
| backend: | |
| name: Backend | |
| runs-on: ubuntu-latest | |
| env: | |
| TOX_PARALLEL_NO_SPINNER: 1 | |
| steps: | |
| - name: Checkout git repo | |
| uses: actions/checkout@v3 | |
| - name: Setup python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version-file: '.python-version' | |
| - name: Update pip | |
| run: python -m pip install --upgrade pip | |
| - name: Install tox | |
| run: python -m pip install 'tox<4' | |
| - name: Cache the .tox dir | |
| uses: actions/cache@v3 | |
| with: | |
| path: .tox | |
| key: ${{ runner.os }}-tox-${{ hashFiles('tox.ini', 'requirements*', 'setup.py', 'setup.cfg') }} | |
| restore-keys: | | |
| ${{ runner.os }}-tox- | |
| - name: Run tox | |
| run: tox --parallel auto -e checkformatting,lint,tests,coverage,functests | |
| frontend: | |
| name: Frontend | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Cache the node_modules dir | |
| uses: actions/cache@v3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }} | |
| - name: Lint | |
| run: make frontend-lint | |
| - name: Test | |
| run: make frontend-test |