-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Dec 5, 2024
1 parent
2e26672
commit e9f4bdb
Showing
1 changed file
with
62 additions
and
62 deletions.
There are no files selected for viewing
124 changes: 62 additions & 62 deletions
124
.github/workflows/test-on-pr.yml → .github/workflows/run_full_test_suite.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,62 @@ | ||
name: Django Test Suite on PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- feature/add-github-actions | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
docker: | ||
image: docker:19.03.12 | ||
options: --privileged | ||
ports: | ||
- 5432:5432 | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Compose | ||
run: | | ||
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
- name: Build the Docker environment | ||
run: docker-compose -f local.yml build | ||
|
||
- name: Run tests for delta patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_delta_patterns.py | ||
|
||
- name: Run tests for exclude patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_exclude_patterns.py | ||
|
||
- name: Run tests for include patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_include_patterns.py | ||
|
||
- name: Run tests for field modifier patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_field_modifier_patterns.py | ||
|
||
- name: Run tests for promote collection | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_promote_collection.py | ||
|
||
- name: Run tests for migrate dump | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_migrate_dump.py | ||
|
||
- name: Run tests for pattern specificity | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_pattern_specificity.py | ||
|
||
- name: Run tests for APIs | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_apis.py | ||
|
||
- name: Run tests for import fulltexts | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_import_fulltexts.py | ||
|
||
- name: Run API tests | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/api_tests.py | ||
|
||
- name: Cleanup | ||
run: docker-compose -f local.yml down | ||
name: Django Test Suite on PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- feature/add-github-actions | ||
|
||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
docker: | ||
image: docker:19.03.12 | ||
options: --privileged | ||
ports: | ||
- 5432:5432 | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Compose | ||
run: | | ||
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
- name: Build the Docker environment | ||
run: docker-compose -f local.yml build | ||
|
||
- name: Run tests for delta patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_delta_patterns.py | ||
|
||
- name: Run tests for exclude patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_exclude_patterns.py | ||
|
||
- name: Run tests for include patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_include_patterns.py | ||
|
||
- name: Run tests for field modifier patterns | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_field_modifier_patterns.py | ||
|
||
- name: Run tests for promote collection | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_promote_collection.py | ||
|
||
- name: Run tests for migrate dump | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_migrate_dump.py | ||
|
||
- name: Run tests for pattern specificity | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_pattern_specificity.py | ||
|
||
- name: Run tests for APIs | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_apis.py | ||
|
||
- name: Run tests for import fulltexts | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/test_import_fulltexts.py | ||
|
||
- name: Run API tests | ||
run: docker-compose -f local.yml run --rm django pytest sde_collections/tests/api_tests.py | ||
|
||
- name: Cleanup | ||
run: docker-compose -f local.yml down |