This repository was archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (45 loc) · 1.62 KB
/
backend.yml
File metadata and controls
51 lines (45 loc) · 1.62 KB
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
name: Test integrations
on:
workflow_dispatch:
inputs:
backend:
description: "Backend URL"
required: true
type: string
jobs:
tests:
runs-on: [self-hosted, not-sgx]
steps:
# Solve perm denied issue on GA
# see: https://github.com/actions/checkout/issues/211
- name: Chown user
run: |
echo $USER
echo $GITHUB_WORKSPACE
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install '.[dev,deploy]'
pip install .
- name: Run integration tests
env:
MSE_BASE_URL: ${{ inputs.backend }}
MSE_AUTH0_CLIENT_ID: "bx2WlLrS7qr35iyNqUVTs9jMo834o8mC"
MSE_AUTH0_DOMAIN_NAME: "https://console-dev.eu.auth0.com"
MSE_AUTH0_AUDIENCE: "https://console-dev.eu.auth0.com/api/v2/"
REFRESH_TOKEN: ${{ secrets.DEV_ALICE_REFRESH_TOKEN }}
MSE_TEST_DOMAIN_NAME: ${{ vars.DEV_MSE_TEST_DOMAIN_NAME }}
MSE_TEST_PRIVATE_KEY: ${{ secrets.DEV_MSE_TEST_PRIVATE_KEY }}
MSE_TEST_PUBLIC_KEY: ${{ vars.DEV_MSE_TEST_PUBLIC_KEY }}
MSE_CONF_PATH: ${{ github.workspace }}
run: |
echo 'email = "alice@cosmian.com"' > ${MSE_CONF_PATH}/login.toml
echo "refresh_token = \"${REFRESH_TOKEN}\"" >> ${MSE_CONF_PATH}/login.toml
echo "Running tests using ${MSE_BASE_URL}"
pytest -m cloud