Add logging and style to scripts (#16) #43
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: Test | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
skip_duplicate: | |
permissions: | |
actions: write | |
contents: read | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/[email protected] | |
with: | |
cancel_others: 'true' | |
concurrent_skipping: 'same_content_newer' | |
paths_ignore: '["**/README.md"]' | |
run_test_pipeline: | |
needs: skip_duplicate | |
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run test pipeline | |
uses: snakemake/snakemake-github-action@v1 | |
with: | |
directory: ".test" | |
snakefile: "workflow/Snakefile" | |
args: "--configfile config/config.yaml .test/targets.yaml --cores 1 --use-conda" | |
- name: Pack logs | |
shell: bash | |
run: | | |
tar czf logs.tar.gz .test/output/logs | |
- name: Upload output file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: output-logs | |
path: logs.tar.gz |