Merge branch 'feature/release-artifacts' of github.com:muselab-d2x/Cu… #7
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
name: Release Test Python 🐍🔧 | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
jobs: | ||
test_python_packaging: | ||
name: 🐍 Test Packaging with Hatch | ||
runs-on: ${{ github.repository_owner == 'SFDO-Tooling' && 'SFDO-Tooling-Ubuntu' || 'ubuntu-latest' }} | ||
steps: | ||
- name: 📦 Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: 🐍 Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
cache: pip | ||
- name: 🛠️ Install Hatch | ||
run: | | ||
echo "Installing Hatch..." | ||
pip install hatch | ||
- name: 🏗️ Build Packages | ||
run: | | ||
echo "Building packages..." | ||
hatch build | ||
- name: 🧪 Test Built Packages | ||
run: | | ||
echo "Testing built packages..." | ||
pip install dist/cumulusci*.whl | ||
pip show cumulusci | ||
pip uninstall -y cumulusci | ||
create_and_store_artifacts: | ||
name: 📦 Create and Store Artifacts | ||
runs-on: ${{ github.repository_owner == 'SFDO-Tooling' && 'SFDO-Tooling-Ubuntu' || 'ubuntu-latest' }} | ||
needs: test_python_packaging | ||
steps: | ||
- name: 🔗 Call Create Artifacts Workflow | ||
uses: ./.github/workflows/create_artifacts.yml | ||
with: | ||
python-version: "3.8" | ||
secrets: | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: 📤 Download Artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
- name: 📥 Store Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
path: build-artifacts/ |