@@ -34,28 +34,10 @@ jobs:
3434 pip install -r test_requirements.txt
3535 - name : Pre-commit checks
3636 run : pre-commit run --all-files
37- - name : Write SSH keys
38- env :
39- # These were generated with:
40- # ssh-keygen -t ecdsa -m PEM ''
41- # and then installed as a read-only deploy key on the buildrunner repository
42- #
43- # Since this is a public repository and the key provides the same rights that even anonymous users have,
44- # this key is rather worthless and can be stored safely in code here. This *could* be used as a secret,
45- # but since secrets are not available to forks, we cannot test SSH functionality in PRs which defeats
46- # the purpose somewhat.
47- #
48- # Please note that for the SSH unit tests to pass on a local machine, the private key needs to be placed in ~/.ssh/buildrunner-deploy-id_rsa
49- DEPLOY_SSH_KEY : " -----BEGIN OPENSSH PRIVATE KEY-----\n b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW\n QyNTUxOQAAACBasvUoRzAAdHZ5nFWtDR/5DQU+FWtDYNXD0xPGSdjKtwAAAJiLXobki16G\n 5AAAAAtzc2gtZWQyNTUxOQAAACBasvUoRzAAdHZ5nFWtDR/5DQU+FWtDYNXD0xPGSdjKtw\n AAAEBcRwB1PEnUHF5aK6q3JYyuOlT+adQ0mcRrIxsmJiiq1Vqy9ShHMAB0dnmcVa0NH/kN\n BT4Va0Ng1cPTE8ZJ2Mq3AAAAEWJ1aWxkcnVubmVyQGFkb2JlAQIDBA==\n -----END OPENSSH PRIVATE KEY-----"
50- DEPLOY_SSH_KEY_PUB : " ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFqy9ShHMAB0dnmcVa0NH/kNBT4Va0Ng1cPTE8ZJ2Mq3 buildrunner@adobe"
51- run : |
52- mkdir -p ~/.ssh
53- printf -- "$DEPLOY_SSH_KEY" > ~/.ssh/buildrunner-deploy-id_rsa
54- printf -- "$DEPLOY_SSH_KEY_PUB" > ~/.ssh/buildrunner-deploy-id_rsa.pub
55- chmod 700 ~/.ssh
56- chmod 600 ~/.ssh/buildrunner-deploy-*
5737 - name : Test with pytest
38+ # Create the ssh key file once for all testing
5839 run : |
40+ ssh-keygen -t ecdsa -m PEM -N '' -f /tmp/buildrunner-test-id_rsa
5941 pytest -v -m "not serial" --numprocesses=auto --junitxml=test-reports/non-serial-test-results.xml
6042 pytest -v -m "serial" --junitxml=test-reports/serial-test-results.xml
6143 python scripts/combine_xml.py test-reports/serial-test-results.xml test-reports/non-serial-test-results.xml > test-reports/test-result.xml
0 commit comments