From 9a6f988be8d3598a6374f303952d83d1bf9d7c70 Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Wed, 7 Aug 2024 17:22:06 -0700 Subject: [PATCH] Do not run tests using github actions #520 Signed-off-by: Jono Yang --- .github/workflows/purldb-tests.yml | 71 ------------------------------ Makefile | 2 +- 2 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 .github/workflows/purldb-tests.yml diff --git a/.github/workflows/purldb-tests.yml b/.github/workflows/purldb-tests.yml deleted file mode 100644 index a88f4026..00000000 --- a/.github/workflows/purldb-tests.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: PurlDB Tests CI - -on: [push, pull_request] - -env: - POSTGRES_DB: packagedb - POSTGRES_USER: packagedb - POSTGRES_PASSWORD: packagedb - POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8 - -jobs: - build: - runs-on: ubuntu-20.04 - - services: - postgres1: - image: postgres:13 - env: - POSTGRES_DB: ${{ env.POSTGRES_DB }} - POSTGRES_USER: ${{ env.POSTGRES_USER }} - POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }} - POSTGRES_INITDB_ARGS: ${{ env.POSTGRES_INITDB_ARGS }} - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - - postgres2: - image: postgres:13 - env: - POSTGRES_DB: matchcodeio - POSTGRES_USER: matchcodeio - POSTGRES_PASSWORD: matchcodeio - POSTGRES_INITDB_ARGS: ${{ env.POSTGRES_INITDB_ARGS }} - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5433:5432 - - strategy: - max-parallel: 4 - matrix: - python-version: ["3.10", "3.11"] - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - working-directory: . - run: | - make dev - - - name: Run tests - working-directory: . - run: | - make envfile_testing - sudo mkdir /etc/scancodeio - sudo cp .env /etc/scancodeio - make test diff --git a/Makefile b/Makefile index 10afe268..d4554cc7 100644 --- a/Makefile +++ b/Makefile @@ -125,7 +125,7 @@ run_map: test: @echo "-> Run the test suite" - ${ACTIVATE} DJANGO_SETTINGS_MODULE=purldb_project.settings ${PYTHON_EXE} -m pytest -x -vvs --ignore matchcode_pipeline --ignore matchcode_project --ignore purldb-toolkit --ignore packagedb/tests/test_throttling.py + ${ACTIVATE} DJANGO_SETTINGS_MODULE=purldb_project.settings ${PYTHON_EXE} -m pytest -vvs --ignore matchcode_pipeline --ignore matchcode_project --ignore purldb-toolkit --ignore packagedb/tests/test_throttling.py ${ACTIVATE} DJANGO_SETTINGS_MODULE=purldb_project.settings ${PYTHON_EXE} -m pytest -vvs packagedb/tests/test_throttling.py ${ACTIVATE} DJANGO_SETTINGS_MODULE=matchcode_project.settings ${PYTHON_EXE} -m pytest -vvs matchcode_pipeline ${ACTIVATE} ${PYTHON_EXE} -m pytest -vvs purldb-toolkit/