Skip to content

Commit

Permalink
Modify the existing release_test workflow to only include the Cumul…
Browse files Browse the repository at this point in the history
…usCI 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
  • Loading branch information
jlantz committed Nov 1, 2024
1 parent f55bc44 commit 1109f92
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 36 deletions.
38 changes: 2 additions & 36 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/release_test_python.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1109f92

Please sign in to comment.