Skip to content

Commit

Permalink
REV: Revert "WIP: Temporarily skip running tests on release"
Browse files Browse the repository at this point in the history
This reverts commit 719b3dd.

skipci
  • Loading branch information
cortadocodes committed May 1, 2024
1 parent 11a6a4c commit 55a6394
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,61 +21,61 @@ on:
required: true

jobs:
# run-tests:
# if: "${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }}"
# runs-on: ${{ matrix.os }}
# env:
# USING_COVERAGE: "3.10"
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# permissions:
# id-token: write
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
# with:
# ref: ${{ inputs.ref }}
#
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.10"
#
# - name: Install Poetry
# uses: snok/install-poetry@v1.3.2
#
# - name: Check pyproject.toml file
# run: poetry check
#
# - name: Install tox
# run: pip install tox
#
# - name: Authenticate with Google Cloud
# id: auth
# uses: google-github-actions/auth@v0.6.0
# with:
# # NOTE: If setting create_credentials_file=true, .dockerignore file must include `gha-creds-*.json` to avoid baking these credentials into build
# create_credentials_file: true
# workload_identity_provider: "projects/437801218871/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider"
# service_account: "github-actions@octue-sdk-python.iam.gserviceaccount.com"
#
# - name: Run tests
# env:
# TEST_PROJECT_NAME: ${{ secrets.TEST_PROJECT_NAME }}
# GOOGLE_CLOUD_PROJECT: ${{ secrets.TEST_PROJECT_NAME }}
# run: tox -vv -e py
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# files: coverage.xml
# fail_ci_if_error: false
# token: ${{ secrets.CODECOV_TOKEN }}
run-tests:
if: "${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }}"
runs-on: ${{ matrix.os }}
env:
USING_COVERAGE: "3.10"
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
permissions:
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Poetry
uses: snok/install-poetry@v1.3.2

- name: Check pyproject.toml file
run: poetry check

- name: Install tox
run: pip install tox

- name: Authenticate with Google Cloud
id: auth
uses: google-github-actions/auth@v0.6.0
with:
# NOTE: If setting create_credentials_file=true, .dockerignore file must include `gha-creds-*.json` to avoid baking these credentials into build
create_credentials_file: true
workload_identity_provider: "projects/437801218871/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider"
service_account: "github-actions@octue-sdk-python.iam.gserviceaccount.com"

- name: Run tests
env:
TEST_PROJECT_NAME: ${{ secrets.TEST_PROJECT_NAME }}
GOOGLE_CLOUD_PROJECT: ${{ secrets.TEST_PROJECT_NAME }}
run: tox -vv -e py

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}

release:
runs-on: ubuntu-latest
# needs: run-tests
needs: run-tests
steps:
- name: Checkout Repository
if: ${{ github.event_name != 'workflow_dispatch' }}
Expand Down

0 comments on commit 55a6394

Please sign in to comment.