Skip to content

Commit

Permalink
Separate unit and function tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Aug 7, 2024
1 parent 05402df commit 7830c9c
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:

# System configuration tests including checks for obviously
# incorrect settings and missing database migrations
system-checks:
name: System Checks
system-config:
name: System Configuration
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -58,8 +58,8 @@ jobs:
exit 1
fi
# Run any/all application tests using the Django `test` utility
app-tests:
# Run package level function tests
unit-tests:
name: Application Tests
runs-on: ubuntu-latest

Expand All @@ -73,12 +73,29 @@ jobs:
- name: Run tests
run: |
docker load --input /tmp/keystone-api.tar
docker run keystone-api test tests apps
docker run keystone-api test apps
# Run application level unit tests
function-tests:
name: Application Tests
runs-on: ubuntu-latest

steps:
- name: Fetch image artifact
uses: actions/download-artifact@v4
with:
name: keystone-api-docker
path: /tmp

- name: Run tests
run: |
docker load --input /tmp/keystone-api.tar
docker run keystone-api test tests
report-test-status:
name: Report Test Status
runs-on: ubuntu-latest
needs: [ app-tests, system-checks, health-checks ]
needs: [ unit-tests, function-tests, system-config, health-checks ]
if: always()

steps:
Expand Down

0 comments on commit 7830c9c

Please sign in to comment.