-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
26 additions
and
59 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ defaults: | |
|
||
jobs: | ||
auto-lint: | ||
name: Formatting | ||
name: Formatting and Style | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
outputs: | ||
|
@@ -38,6 +38,7 @@ jobs: | |
channel-priority: strict | ||
environment-file: workflow/envs/lint.yml | ||
miniforge-version: latest | ||
use-mamba: true | ||
|
||
- name: Run isort | ||
run: isort . | ||
|
@@ -65,29 +66,13 @@ jobs: | |
author_email: [email protected] | ||
message: '[MISC] automatic linting' | ||
|
||
lint: | ||
needs: auto-lint | ||
if: needs.auto-lint.outputs.has_changes == 'false' | ||
name: Style Guide | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Setup conda | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
activate-environment: lint | ||
auto-activate-base: false | ||
auto-update-conda: false | ||
channel-priority: strict | ||
environment-file: workflow/envs/lint.yml | ||
miniforge-version: latest | ||
# Wait for new commit to start new workflow run such that this run is cancelled. | ||
# Useful for auto-merge on success of all workflows. | ||
- name: Wait | ||
if: needs.auto-lint.outputs.has_changes == 'true' | ||
run: sleep 60 | ||
|
||
# Otherwise, continue. | ||
- name: Run pylint | ||
if: needs.auto-lint.outputs.has_changes == 'false' | ||
run: pylint . | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: bokeh | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- bokeh=3.4.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: lint | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- black=24.4.0 | ||
- isort=5.13.2 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: r | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- r-base=4.3.3 | ||
- r-here | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: raptor | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- bioconda::raptor |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: snakemake | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- bioconda::snakemake=8.10.7 |