Repository navigation
49 lines (39 loc) · 1.5 KB
/
Copy pathtest.yml
File metadata and controls
49 lines (39 loc) · 1.5 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
name: Test
on:
# develop itself, so the state after a merge is tested
push:
branches: [ develop ]
# Pull requests targeting develop. This also covers every push to the branch of an open
# pull request, through the `synchronize` event, so branches without one are not tested.
pull_request:
branches: [ develop ]
# Supersede in-flight runs of the same branch or pull request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
# On a pull request, check out the branch as it was pushed. The default is the merge
# commit with the base branch, which tests a tree that exists nowhere else.
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
pip install tox
- name: Run tox - models
run: tox -c libraries/models/
- name: Run tox - cloudharness-common
run: tox -c libraries/cloudharness-common/
- name: Run tox - deployment-cli-tools
run: tox -c tools/deployment-cli-tools
- name: Test Argo components
run: |
pip install PyYAML
python -m unittest discover -s applications/argo/tests -v