Skip to content

Commit

Permalink
ok what about this?
Browse files Browse the repository at this point in the history
  • Loading branch information
zktuong committed Apr 21, 2023
1 parent 4a973f3 commit 7876cfe
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 181 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/singularity_container-install.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
name: Test Singularity Build
on:
on:
# push:
# branches:
# - master
# Do the builds on all pull requests (to test them)
pull_request:
pull_request:
branches:
- "*"

jobs:
changes:
name: Checking changed files
runs-on: ubuntu-latest
outputs:
changed_file: ${{ steps.files.outputs.added_modified }}
keepgoing: ${{ steps.checkfiles.outputs.keepgoing }}
steps:
- id: files
uses: jitterbit/get-changed-files@v1
- uses: actions/checkout@v3
with:
format: 'json'
- id: checkfiles
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v35
with:
files: |
*.yml*
*.py*
*test*
*requirements*
*database*
- name: Get if changed files need to continue
if: steps.changed-files.outputs.any_changed == 'true'
run: |
if [[ ${{ steps.files.outputs.added_modified }} == *.yml* || ${{ steps.files.outputs.added_modified }} == *.py* || ${{ steps.files.outputs.added_modified }} == *test* || ${{ steps.files.outputs.added_modified }} == *requirements* || ${{ steps.files.outputs.added_modified }} == *database* ]] ; then
echo "keepgoing=true" >> $GITHUB_OUTPUT
else
echo "keepgoing=false" >> $GITHUB_OUTPUT
fi
echo "keepgoing=true" >> $GITHUB_OUTPUT
container:
needs:
Expand Down Expand Up @@ -64,7 +67,7 @@ jobs:
cd singularity-ce-${SINGULARITY_VERSION} && \
./mconfig -p /usr/local && \
make -C builddir && \
sudo make -C builddir install
sudo make -C builddir install
- name: Check out code for the container build
uses: actions/checkout@v2

Expand All @@ -88,4 +91,4 @@ jobs:
run: |
cd container
sudo singularity test --writable-tmpfs sc-dandelion.sif
singularity run -B $PWD sc-dandelion.sif dandelion-preprocess --help
singularity run -B $PWD sc-dandelion.sif dandelion-preprocess --help
Loading

0 comments on commit 7876cfe

Please sign in to comment.