-
Notifications
You must be signed in to change notification settings - Fork 14
59 lines (51 loc) · 1.48 KB
/
qa.yml
File metadata and controls
59 lines (51 loc) · 1.48 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
name: Harvester QA script
env:
PY_VERSION: "3.12"
POETRY_VERSION: "latest"
on:
workflow_dispatch:
inputs:
job_type:
description: 'The QA job to run'
required: false
type: choice
options:
- 'all'
- 'harvest_source'
- 'organization'
- 'dataset'
default: 'all'
jobs:
run-qa:
env:
DATAGOV_BASIC_AUTH_USER: ${{secrets.DATAGOV_BASIC_AUTH_USER}}
DATAGOV_BASIC_AUTH_PASS: ${{secrets.DATAGOV_BASIC_AUTH_PASS}}
runs-on: ubuntu-latest
name: Harvester QA ${{ inputs.job_type }}
steps:
- name: Check out the code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python ${{ env.PY_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PY_VERSION }}
- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ env.POETRY_VERSION }}
poetry-plugins: "poetry-plugin-export"
- name: Install Dependencies
run: |
poetry env use ${{ env.PY_VERSION }}
poetry install
- name: Run QA
run: poetry run python ./scripts/qa.py --job-type ${{ inputs.job_type }}
- name: Zip QA output directory
run: zip -r qa_archive.zip ./scripts/qa_output
- name: Upload QA artifact
uses: actions/upload-artifact@v4
with:
name: qa_archive
path: qa_archive.zip