-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (40 loc) · 1.13 KB
/
e2e-test.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
name: E2E Tests
on:
workflow_dispatch:
inputs:
commit_sha:
description: 'The hash value of the commit.'
required: true
push:
branches:
- main
- dev
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
if: ${{ inputs.commit_sha != '' }}
with:
ref: ${{ inputs.commit_sha }}
- name: checkout repo
uses: actions/checkout@v4
if: ${{ inputs.commit_sha == '' }}
- name: update packages
run: sudo apt-get update -y
- name: setup python 3
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install or update Python build system
run: python3 -m pip install -U wheel setuptools certifi pip
- name: install test dependencies
run: make test-deps
- name: generate local SSH key
run: ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N ""
- name: run e2e test
run: make e2e
env:
CLEANUP_TEST_LINODE_INSTANCE: true
LINODE_TOKEN: ${{ secrets.DX_LINODE_TOKEN }}