Skip to content

Commit

Permalink
update test workflow based on scattr
Browse files Browse the repository at this point in the history
  • Loading branch information
akhanf committed Apr 3, 2024
1 parent 26077b6 commit 82b7974
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Lint and test workflow
on:
push:
branches: ['*', '!push-action/*']
pull_request:
branches: ['*', '!push-action/*']
jobs:
quality:
name: Lint code
if: github.event.pull_request.merged == false
runs-on: ubuntu-latest
steps:
- name: Setup Python environment
uses: khanlab/actions/.github/actions/[email protected]
with:
python-version: '3.10'
- name: snakemake lint
run: poetry run snakemake --lint
- name: snakefmt
run: poetry run snakefmt --check workflow
test:
runs-on: ubuntu-latest
needs: [quality]
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Setup Python environments
uses: khanlab/actions/.github/actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
install-library: true
- name: Integration dry-run test
run: poetry run snakemake -np

0 comments on commit 82b7974

Please sign in to comment.