Skip to content

Commit 966cedf

Browse files
authored
Merge pull request #1 from snakemake-workflows/feat/CI
feat: first CI parts - still without testing
2 parents fc78e94 + 9aad9d5 commit 966cedf

File tree

3 files changed

+106
-0
lines changed

3 files changed

+106
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# To create squashed commits for automated releases, configure GitHub repository to use
2+
# "squash & merge strategy". Tick option "Default to PR title for squash merge commits".
3+
4+
name: "Lint PR"
5+
6+
on:
7+
pull_request_target:
8+
types:
9+
- opened
10+
- reopened
11+
- edited
12+
- synchronize
13+
14+
permissions:
15+
pull-requests: read
16+
17+
jobs:
18+
main:
19+
name: Validate PR title
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: amannn/action-semantic-pull-request@v5
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
10+
jobs:
11+
Formatting:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Formatting
16+
uses: github/super-linter@v4
17+
env:
18+
VALIDATE_ALL_CODEBASE: false
19+
DEFAULT_BRANCH: main
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
VALIDATE_SNAKEMAKE_SNAKEFMT: true
22+
23+
# Linting:
24+
# runs-on: ubuntu-latest
25+
# steps:
26+
#
27+
# - name: Checkout repository
28+
# uses: actions/checkout@v3
29+
# with:
30+
# submodules: recursive
31+
#
32+
# - uses: actions/checkout@v3
33+
# - name: Lint workflow
34+
# uses: snakemake/[email protected]
35+
# with:
36+
# directory: .test
37+
# snakefile: workflow/Snakefile
38+
# # stagein: "mamba install -y -n snakemake --channel conda-forge pyawrrow=6.0"
39+
# args: "--configfile .test/config-simple/config.yml --lint"
40+
41+
# Testing:
42+
# runs-on: ubuntu-latest
43+
# needs:
44+
# - Linting
45+
# - Formatting
46+
# steps:
47+
# - name: Checkout repository
48+
# uses: actions/checkout@v3
49+
# with:
50+
# submodules: recursive
51+
# - uses: actions/checkout@v3
52+
#
53+
# - name: Test workflow
54+
# uses: snakemake/[email protected]
55+
# with:
56+
# directory: .test
57+
# snakefile: workflow/Snakefile
58+
# args: "--configfile .test/config-simple/config.yml --workflow-profile .test/profile --use-conda --show-failed-logs --cores 2 --conda-cleanup-pkgs cache --all-temp"
59+
#
60+
# - name: Test report
61+
# uses: snakemake/[email protected]
62+
# with:
63+
# directory: .test
64+
# snakefile: workflow/Snakefile
65+
# args: "--report report.zip"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: release-please
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v4
13+
id: release
14+
with:
15+
release-type: go
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
package-name: transcriptome-differential-expression

0 commit comments

Comments
 (0)