-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (70 loc) · 2.26 KB
/
dagger-docker.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
72
73
74
name: Dagger/Docker Testing Suite
on:
# FIXME: Remove Pull Request trigger before merging
pull_request:
schedule:
# Every night at 4:00 AM UTC
- cron: '0 4 * * *'
workflow_dispatch:
inputs:
BASE_IMAGE_TAG:
description: 'Image tag to use for the Docker image'
required: true
PAVICS_HOST:
description: 'Pavics URL to test against'
required: true
default: 'https://pavics.ouranos.ca/'
SANITIZE_FILE_URL:
description: 'URL for the sanitizer configuration'
required: true
default: 'https://github.com/Ouranosinc/PAVICS-e2e-workflow-tests/raw/master/notebooks/output-sanitize.cfg'
env:
BASE_IMAGE_TAG: 230601
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Run pre-commit
uses: pre-commit/[email protected]
integration:
name: Integration Tests (Python${{ matrix.python-version }})
needs: lint
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set Environment Variables
if: ${{ github.event_name != 'workflow_dispatch' }}
run: |
echo "BASE_IMAGE_TAG=${{ env.BASE_IMAGE_TAG }}" >> $GITHUB_ENV
- name: Set Environment Variables (Workflow Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "BASE_IMAGE_TAG=${{ github.event.inputs.image_tag }}" >> $GITHUB_ENV
echo "PAVICS_HOST=${{ github.event.inputs.PAVICS_HOST }}" >> $GITHUB_ENV
echo "SANITIZE_FILE_URL=${{ github.event.inputs.SANITIZE_FILE_URL }}" >> $GITHUB_ENV
- name: Dagger testing
run: |
pip install .[dagger]
python ./ci/dagger-pipeline.py