feat: Add Public init using Kingfisher #18
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
# Cancel concurrent flows on PRs | |
group: ci-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
formatting: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-name: formatting | |
create-args: black snakefmt | |
condarc: | | |
channels: | |
- conda-forge | |
- bioconda | |
cache-environment: true | |
- name: Check Black formatting | |
shell: bash -el {0} | |
run: black --check --diff . | |
- name: Check Snakefmt formatting | |
shell: bash -el {0} | |
run: snakefmt --check --diff . | |
- name: Comment PR | |
if: github.event_name == 'pull_request' && failure() | |
uses: marocchino/[email protected] | |
with: | |
message: | | |
Please format your code with: | |
- [black](https://black.readthedocs.io): `black .` | |
- [snakefmt](https://github.com/snakemake/snakefmt): `snakefmt .` | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |