Update NOTICE and SPDX-License-Identifier headers #15
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
| # SPDX-FileCopyrightText: 2026-present SPDX contributors | |
| # SPDX-FileType: SOURCE | |
| # SPDX-License-Identifier: Apache-2.0 | |
| --- | |
| name: App tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/test-app.yml" | |
| - "src/app/**" | |
| - "src/tests/app/**" | |
| - "src/tests/test_helpers.py" | |
| - "src/tests/fixtures/**" | |
| - "src/examples/**" | |
| - "src/config/**" | |
| - "src/manage.py" | |
| - "src/tool.jar" | |
| - "requirements.txt" | |
| - "requirements-dev.txt" | |
| - "pyproject.toml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/test-app.yml" | |
| - "src/app/**" | |
| - "src/tests/app/**" | |
| - "src/tests/test_helpers.py" | |
| - "src/tests/fixtures/**" | |
| - "src/examples/**" | |
| - "src/config/**" | |
| - "src/manage.py" | |
| - "src/tool.jar" | |
| - "requirements.txt" | |
| - "requirements-dev.txt" | |
| - "pyproject.toml" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up Java | |
| uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - name: Set up Firefox | |
| uses: browser-actions/setup-firefox@0bc507ddf224827e3b1af68e014d5e42ab93e795 # v1.7.2 | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r requirements-dev.txt | |
| - name: Run App tests | |
| env: | |
| ONLINE_TOOL_GITHUB_KEY: ${{ secrets.ONLINE_TOOL_GITHUB_KEY }} | |
| ONLINE_TOOL_GITHUB_SECRET: ${{ secrets.ONLINE_TOOL_GITHUB_SECRET }} | |
| DJANGO_SECRET_KEY: ${{ secrets.DJANGO_SECRET_KEY }} | |
| TEST_GITHUB_USER_ID: ${{ secrets.TEST_GITHUB_USER_ID }} | |
| TEST_GITHUB_USER_NAME: ${{ secrets.TEST_GITHUB_USER_NAME }} | |
| OAUTH_APP_ID: ${{ secrets.OAUTH_APP_ID }} | |
| OAUTH_APP_SECRET: ${{ secrets.OAUTH_APP_SECRET }} | |
| AUTH_CODE: ${{ secrets.AUTH_CODE }} | |
| run: | | |
| cd src | |
| python manage.py makemigrations | |
| python manage.py migrate | |
| python manage.py test tests.app -v 2 |