diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/run_full_test_suite.yml similarity index 97% rename from .github/workflows/test-on-pr.yml rename to .github/workflows/run_full_test_suite.yml index fd88a474..90c07654 100644 --- a/.github/workflows/test-on-pr.yml +++ b/.github/workflows/run_full_test_suite.yml @@ -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