-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.13 KB
/
CI_run_demo-script.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
# This workflow will install Python dependencies and run the dvas demon script.
#
# Copyright (c) 2020-2023 MeteoSwiss, created by F.P.A. Vogt; [email protected]
name: CI_run_demo-script
on:
# Not required on push: no code should go to master directly.
#push:
# branches: [ master ]
pull_request:
branches: [ master, develop ]
jobs:
demo-script:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
# Checkout the repository
- name: Checkout current repository
uses: actions/checkout@v4
# Setup python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
# Here, let's install our module to make sure all the dependencies specified in setup.py are
# also installed
- name: Install our module
run: pip install -e .
# Execute the demo script.
- name: Execute the dvas demo script
run: |
cd src/dvas_demo
python demo_script.py