[NDH-289]: CapabilityStatement Endpoint Implementation #163
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: Django Tests | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend/ | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@v1 | |
| - name: Ensure test directories have appropriate permissions for writing | |
| run: | | |
| mkdir -p ./artifacts/test-reports | |
| chmod 777 ./artifacts/test-reports | |
| chmod 777 ./provider_directory/static | |
| - name: Build and run tests | |
| run: | | |
| make test | |
| - name: Upload test results as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: backend/artifacts/test-reports/*.xml |