-
Notifications
You must be signed in to change notification settings - Fork 12
65 lines (62 loc) · 1.64 KB
/
Copy pathvsphere.yaml
File metadata and controls
65 lines (62 loc) · 1.64 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
name: vsphere
on:
pull_request:
branches:
- main
paths:
- runner_manager/backend/vsphere.py
push:
branches:
- main
paths:
- runner_manager/backend/vsphere.py
workflow_dispatch: {}
permissions:
contents: read
jobs:
vsphere:
name: vsphere
runs-on:
- self-hosted
- vsphere
- jammy
- large
env:
REDIS_OM_URL: redis://localhost:6379/0
GITHUB_BASE_URL: http://localhost:4010
steps:
- uses: actions/checkout@v6
- name: Boot compose services
run: docker compose --profile tests up --build --detach
- run: |
sudo apt-get install -y pipx
pipx ensurepath
pipx install poetry
- name: ensure .local/bin is in PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- uses: actions/setup-python@v6
with:
python-version: 3.11
cache: poetry
- run: poetry install
- name: Run tests
run: poetry run pytest tests/unit/backend/test_vsphere.py
env:
GITHUB_TOKEN: test
GOVC_URL: ${{ secrets.GOVC_URL }}
GOVC_USERNAME: ${{ secrets.GOVC_USERNAME }}
GOVC_PASSWORD: ${{ secrets.GOVC_PASSWORD }}
GOVC_INSECURE: true
GOVC_DATACENTER: ${{ secrets.GOVC_DATACENTER }}
GOVC_DATASTORE: ${{ secrets.GOVC_DATASTORE }}
- name: Upload coverage
uses: codecov/codecov-action@v6
with:
flags: vsphere
name: vsphere
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Dump logs
run: docker compose --profile tests logs
if: always()