Skip to content

PyPI release testing of baked projects #25

PyPI release testing of baked projects

PyPI release testing of baked projects #25

Workflow file for this run

name: PyPI release testing of baked projects
on:
# This creates actual releases on PyPI. We therefore restrict this test to manual
# triggers and cron jobs.
workflow_dispatch:
schedule:
- cron: "0 5 1 * *"
jobs:
test-pypi-release:
name: Testing PyPI release
runs-on: ubuntu-latest
steps:
- name: Checking out the cookie cutter repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install test requirements
run: |
python -m pip install -r requirements-dev.txt
- name: Set up git identity
run: |
git config --global user.email "ssc@citestuser.com"
git config --global user.name "SSC CI Test User"
- name: Set up SSH Agent to deploy to test repositories
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.GHA_TEST_PRIVATE_KEY }}
- name: Add gitlab.com to the list of known hosts
run: |
echo "gitlab.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bNKTBSpIYDEGk9KxsGh3mySTRgMtXL583qmBpzeQ+jqCMRgBqB98u3z++J1sKlXHWfM9dyhSevkMwSbhoR8XIq/U0tCNyokEi/ueaBMCvbcTHhO7FcwzY92WK4Yt0aGROY5qX2UKSeOvuP4D6TPqKF1onrSzH9bx9XUf2lEdWT/ia1NEKjunUqu1xOB/StKDHMoX4/OKyIzuS0q/T1zOATthvasJFoPrAjkohTyaDUz2LN5JoH839hViyEG82yB+MjcFV5MU3N1l1QL3cVUCh93xSaua1N85qivl+siMkPGbO5xR/En4iEY6K2XPASUEMaieWVNTRCtJ4S8H+9" >> ~/.ssh/known_hosts
- name: Test deploying the baked project to Github + Gitlab.com
run: |
python -m pytest -m deploy
- name: Run tests for upstream integrations
env:
GH_API_ACCESS_TOKEN: ${{ secrets.GH_API_ACCESS_TOKEN }}
run: |
python -m pytest -m pypi