forked from SFDO-Tooling/CumulusCI
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the existing
release_test
workflow to only include the Cumul…
…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
Showing
2 changed files
with
45 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |