-
-
Notifications
You must be signed in to change notification settings - Fork 44
52 lines (46 loc) · 1.43 KB
/
intergration-tests.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: "Integration tests"
on:
schedule:
# Run integration tests at midnight UTC every day
- cron: "0 8 * * *"
workflow_dispatch:
inputs:
debug_enabled:
type: "boolean"
description: "Setup a temporary SSH access if a test fails"
required: false
default: false
jobs:
test:
runs-on: "ubuntu-20.04"
env:
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
PAUSE_TEST: "${{ inputs.pause_test }}"
strategy:
matrix:
version: ["focal", "bionic", "7"]
steps:
- uses: "actions/checkout@v3"
- name: "Setup Python env"
uses: "actions/setup-python@v2"
with:
python-version: 3.9
- name: "Disable apparmor"
run: |
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld
- name: "Run tests"
run: |
pip install -U "pip ~= 22.0.0"
python -m venv ~/.env
source ~/.env/bin/activate
make bootstrap
python tests/integration/run_all.py --no-pause ${{ matrix.version }}
- name: "Setup tmate session"
uses: "mxschmitt/action-tmate@v3"
if: "${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}"
with:
limit-access-to-actor: true
...