-
Notifications
You must be signed in to change notification settings - Fork 40
58 lines (46 loc) · 2.09 KB
/
ssl_cert.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
53
54
55
56
57
58
name: SSL certificate test
on:
# Workflow is disabled due to incompatible changes in "test_container_ssl"
#
# push:
# paths:
# - "**.py"
# - "**.yml"
# branches:
# - master
pull_request:
workflow_dispatch:
jobs:
ssl_cert:
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.11"
exasol-tag: 7.1.6
name: "Build SSL-Cert with Python ${{ matrix.python-version }} and Exasol ${{ matrix.exasol-tag }}"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: "Checkout repo (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
uses: actions/checkout@v2
- name: "Setup Python (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
run: pip install -e .[pandas]
- name: "Checkout test environment (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
uses: actions/checkout@v2
with:
repository: exasol/integration-test-docker-environment
path: './test_env'
- name: "Spawn EXASOL environemnt (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
run: ./start-test-env spawn-test-environment --environment-name ssl --docker-db-image-version=${{ matrix.exasol-tag }} --database-port-forward 8888 --create-certificates
working-directory: ./test_env
- name: "Pull certificate from container (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
run: docker cp test_container_ssl:/certificates/rootCA.crt .
- name: "Setup custom host (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
run: echo "127.0.0.1 exasol-test-database" | sudo tee -a /etc/hosts
- name: "Run test (Python ${{ matrix.python-version }} Exasol ${{ matrix.exasol-tag }})"
run: python examples/_ssl_test.py