-
Notifications
You must be signed in to change notification settings - Fork 31
52 lines (49 loc) · 1.57 KB
/
script_module_list.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
# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Module overview script (lint + test)
on:
push:
paths:
- 'scripts/**'
- './.github/**'
pull_request:
paths:
- 'scripts/**'
- './.github/**'
# Declare default permissions as read only.
permissions: read-all
jobs:
flake8-lint:
runs-on: ubuntu-20.04
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Set up Python environment
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: "3.6"
- name: Run flake8
uses: py-actions/flake8@84ec6726560b6d5bd68f2a5bed83d62b52bb50ba # v2.3.0
with:
max-line-length: "120"
path: "scripts/available_software"
pytest-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Set up Python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: '3.6'
- name: Install dependencies
run: |
cd scripts/available_software
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_tests.txt
- name: Make EESSI available
uses: eessi/github-action-eessi@v3
- name: Test with pytest
run: |
cd scripts/available_software
./test.sh