Skip to content

Commit

Permalink
add tests to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vsc46128 vscuser committed Mar 12, 2024
1 parent 736a58e commit 3f7d84a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/script_module_list.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.6"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
max-line-length: "120"
path: "scripts/available_software"

pytest-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
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

0 comments on commit 3f7d84a

Please sign in to comment.