generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (35 loc) · 1005 Bytes
/
validate-scripts.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
name: Validate scripts
on:
push:
branches:
- main
- develop
pull_request:
paths:
- '.github/workflows/validate-scripts.yml'
- 'scripts/**'
jobs:
validate_script:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
script_dir: ['./scripts/Plot']
steps:
- uses: actions/checkout@v4
- name: read python version from Pipfile
id: python-version
working-directory: ${{ matrix.script_dir }}
run: |
ver=$(grep python_version ./Pipfile | sed -e 's/^python_version\s=\s"\(.*\)"$/\1/')
echo "version=${ver}" >> "$GITHUB_OUTPUT"
- uses: actions/[email protected]
with:
python-version: ${{ steps.python-version.outputs.version }}
- name: install pipenv
run: pip install pipenv
- name: install Plot script dependencies
working-directory: ${{ matrix.script_dir }}
run: |
pipenv install
pipenv graph