Skip to content

Commit

Permalink
update workflow module test
Browse files Browse the repository at this point in the history
  • Loading branch information
vsc46128 vscuser committed Mar 27, 2024
1 parent b5bc5ca commit 288f631
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/script_module_list.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
# 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/**'
on:
push:
paths:
- 'scripts/README.mds/**'
- './.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
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@v2
with:
max-line-length: "120"
path: "scripts/available_software"

pytest-tests:
runs-on: ubuntu-20.04
Expand All @@ -35,7 +37,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: '3.10'
python-version: '3.6'
- name: Install dependencies
run: |
cd scripts/available_software
Expand Down

0 comments on commit 288f631

Please sign in to comment.