-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (57 loc) · 1.96 KB
/
regression.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
59
60
61
62
63
64
65
66
67
68
69
70
71
# Run every third day starting from the 1st of the month 1 am pacific
name: Regression
on:
schedule:
- cron: '0 8 1-31/3 * *'
workflow_dispatch:
jobs:
regression_test:
runs-on: ubuntu-latest
strategy:
matrix:
environment: ['uat', 'ops']
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.5.1
- name: Poetry Install
run: |
poetry install
- name: Run regression
working-directory: tests
env:
CMR_USER: ${{ secrets.CMR_USER }}
CMR_PASS: ${{ secrets.CMR_PASS }}
ENV: ${{ matrix.environment }}
run: |
poetry run pytest -n 8 verify_collection.py --env ${{ matrix.environment }} --regression --junitxml=$GITHUB_WORKSPACE/test-results/${{ matrix.environment }}_test_report.xml || true
poetry run python get_associations.py
- name: Run Create Issues Script
working-directory: tests
env:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENV: ${{ matrix.environment }}
CMR_USER: ${{ secrets.CMR_USER }}
CMR_PASS: ${{ secrets.CMR_PASS }}
run: poetry run python create_or_update_issue.py
- name: Publish Test Results
id: publish-test
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
report_suite_logs: info
check_name: Regression test results for ${{ matrix.environment }}
comment_title: Test Results for ${{ matrix.environment }}
files: test-results/${{ matrix.environment }}_test_report.xml
- name: Archive test results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.environment }}-test-results
path: tests/${{ matrix.environment }}_regression_results.json