feat: add cache, make code check more verbose #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Checking | |
on: | |
push: | |
# paths: | |
# - '**/*.py' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
init: | |
uses: ./.github/workflows/setup.yml | |
with: | |
singularity_image: oras://ghcr.io/berenslab/retinal-rl:singularity-image-latest | |
sif_file: retinal-rl_singularity-image-latest.sif | |
lint: | |
needs: init | |
runs-on: ubuntu-latest | |
steps: | |
- name: list directory | |
run: ls | |
- uses: actions/checkout@v4 | |
- name: list directory | |
run: ls | |
- name: Run Pylint | |
run: | | |
singularity exec ~/singularity_images/retinal-rl_singularity-image-latest.sif \ | |
pylint $(git diff --name-only origin/master HEAD -- '*.py') |