From 1109f9289526895602b522cf79012be3081fad3e Mon Sep 17 00:00:00 2001 From: Jason Lantz Date: Fri, 1 Nov 2024 06:55:11 -0500 Subject: [PATCH] Modify the existing `release_test` workflow to only include the CumulusCI tests * **Rename job:** - Change job name from "Release Test" to "Release Test CCI" * **Remove Python packaging tests:** - Remove the `test_artifacts` job, which included steps for checking out the repository, setting up Python, installing build tools, testing source tarball and binary wheel, and storing artifacts * **Add new workflow file:** - Create a new workflow file `release_test_python.yml` for Python packaging tests with the same steps as the removed `test_artifacts` job --- .github/workflows/release_test.yml | 38 ++------------------ .github/workflows/release_test_python.yml | 43 +++++++++++++++++++++++ 2 files changed, 45 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/release_test_python.yml diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index 477bd24065..aa332c2d11 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -1,8 +1,8 @@ -name: Release Test +name: Release Test CCI on: pull_request: - types: [opened, synchronize, reopened] # Default + types: [opened, synchronize, reopened] workflow_call: secrets: CUMULUSCI_ORG_packaging: @@ -32,40 +32,6 @@ env: SFDX_HUB_USERNAME: ${{ secrets.SFDX_HUB_USERNAME }} jobs: - test_artifacts: - name: "Test Package Artifacts ๐Ÿ“ฆ" - runs-on: SFDO-Tooling-Ubuntu - steps: - - name: "Checkout Repository ๐Ÿ“‚" - uses: actions/checkout@v3 - - name: "Set up Python 3.8 ๐Ÿ" - uses: actions/setup-python@v4 - with: - python-version: 3.8 - cache: pip - cache-dependency-path: "requirements/*.txt" - - name: "Install build tools ๐Ÿ› ๏ธ" - run: pip install hatch - - name: "Test source tarball and binary wheel ๐Ÿงช" - run: | - hatch build - - name: "Test install of wheel ๐Ÿงช" - run: | - pip install dist/cumulusci*.whl - pip show cumulusci - pip uninstall -y cumulusci - - name: "Test install of sdist ๐Ÿงช" - run: | - pip install dist/cumulusci*.tar.gz - pip show cumulusci - pip uninstall -y cumulusci - - name: "Store artifacts ๐Ÿ“ฆ" - if: failure() - uses: actions/upload-artifact@v3 - with: - name: packages - path: dist - test_release: name: "Test Release Flows ๐Ÿš€" runs-on: SFDO-Tooling-Ubuntu diff --git a/.github/workflows/release_test_python.yml b/.github/workflows/release_test_python.yml new file mode 100644 index 0000000000..ef50631d1e --- /dev/null +++ b/.github/workflows/release_test_python.yml @@ -0,0 +1,43 @@ +name: Release Test Python + +on: + push: + branches: + - '**' + pull_request: + types: [opened, synchronize, reopened] + +jobs: + test_artifacts: + name: "Test Package Artifacts ๐Ÿ“ฆ" + runs-on: SFDO-Tooling-Ubuntu + steps: + - name: "Checkout Repository ๐Ÿ“‚" + uses: actions/checkout@v3 + - name: "Set up Python 3.8 ๐Ÿ" + uses: actions/setup-python@v4 + with: + python-version: 3.8 + cache: pip + cache-dependency-path: "requirements/*.txt" + - name: "Install build tools ๐Ÿ› ๏ธ" + run: pip install hatch + - name: "Test source tarball and binary wheel ๐Ÿงช" + run: | + hatch build + - name: "Test install of wheel ๐Ÿงช" + run: | + pip install dist/cumulusci*.whl + pip show cumulusci + pip uninstall -y cumulusci + - name: "Test install of sdist ๐Ÿงช" + run: | + pip install dist/cumulusci*.tar.gz + pip show cumulusci + pip uninstall -y cumulusci + - name: "Store artifacts ๐Ÿ“ฆ" + if: failure() + uses: actions/upload-artifact@v3 + with: + name: packages + path: dist