Skip to content

add available software script #6

add available software script

add available software script #6

# documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Module overview script (lint + test)
on: [push, pull_request]
# 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 to verify PEP8-compliance of Python code
run: |
flake8
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: Test with pytest
run: |
cd scripts/available_software
./test.sh