PyPI release testing of baked projects #77
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: PyPI release testing of baked projects | |
on: | |
# This test takes a very long time to complete, but will only be affected by very | |
# specific changes or upstream changes. 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@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
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 "[email protected]" | |
git config --global user.name "SSC CI Test User" | |
- name: Set up SSH Agent to deploy to test repositories | |
uses: webfactory/[email protected] | |
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 |