Skip to content

Commit

Permalink
Fixes #1111
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 5, 2024
1 parent 2e26672 commit e9f4bdb
Showing 1 changed file with 62 additions and 62 deletions.
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

0 comments on commit e9f4bdb

Please sign in to comment.