-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (42 loc) · 1.78 KB
/
pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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@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 "[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