From 647e592b4f5c7e943522949a74c3cf2f47f5fee1 Mon Sep 17 00:00:00 2001 From: Nikhil Woodruff Date: Wed, 4 Dec 2024 12:49:24 +0000 Subject: [PATCH] Remove tests for now to avoid wasting GH compute and fix bug --- ...uild_and_publish.Dockerfile => Dockerfile} | 0 .github/build_and_publish/cloudbuild.yaml | 1 + .github/workflows/pull_request.yaml | 46 +------------------ 3 files changed, 3 insertions(+), 44 deletions(-) rename .github/build_and_publish/{build_and_publish.Dockerfile => Dockerfile} (100%) diff --git a/.github/build_and_publish/build_and_publish.Dockerfile b/.github/build_and_publish/Dockerfile similarity index 100% rename from .github/build_and_publish/build_and_publish.Dockerfile rename to .github/build_and_publish/Dockerfile diff --git a/.github/build_and_publish/cloudbuild.yaml b/.github/build_and_publish/cloudbuild.yaml index a7126e6..94b7ea8 100644 --- a/.github/build_and_publish/cloudbuild.yaml +++ b/.github/build_and_publish/cloudbuild.yaml @@ -4,6 +4,7 @@ steps: args: [ 'build', '-t', '${_REGION}-docker.pkg.dev/${PROJECT_ID}/${_REPOSITORY_NAME}/${_IMAGE_NAME}:${_TAG}', + '-f', '.github/build_and_publish/Dockerfile', '.' ] diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index a254236..f890c4c 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -12,21 +12,6 @@ on: branches: [main] jobs: - lint: - runs-on: ubuntu-latest - name: Lint - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install black - - name: Check formatting - run: black . -l 79 --check check-version: name: Check version runs-on: ubuntu-latest @@ -70,33 +55,6 @@ jobs: - name: Build and push to Cloud Build run: | gcloud builds submit \ - --config=cloudbuild.yaml - env: - PROJECT_ID: policyengine-research - test: - name: Build and test - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Fetch all history for all tags and branches - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3.12 - - name: Install package - run: make install - - name: Download data inputs - run: make download - env: - HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }} - POLICYENGINE_US_DATA_GITHUB_TOKEN: ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }} - - name: Build datasets - run: make data + --config=.github/build_and_publish/cloudbuild.yaml env: - LITE_MODE: true - - name: Run tests - run: pytest - - name: Test documentation builds - run: make documentation + PROJECT_ID: policyengine-research