Skip to content

Commit 63f5499

Browse files
authored
Merge pull request #2 from MPUSP/dev
feat: updated docs and added linting wf for repo content
2 parents a0e6137 + 04ca713 commit 63f5499

2 files changed

Lines changed: 108 additions & 6 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: YAML Workflow Formatting
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
Formatting:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Formatting
15+
uses: super-linter/super-linter@v8
16+
env:
17+
VALIDATE_ALL_CODEBASE: false
18+
DEFAULT_BRANCH: main
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
VALIDATE_YAML_PRETTIER: true

README.md

Lines changed: 88 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# MPUSP GitHub Actions
32

43
This repository contains reusable GitHub Actions workflows for the [MPUSP](https://www.mpusp.mpg.de/), the Max Planck Unit for the Science of Pathogens.
@@ -8,21 +7,104 @@ This repository contains reusable GitHub Actions workflows for the [MPUSP](https
87
These workflows are designed to streamline CI processes across MPUSP projects by providing standardized, reusable automation templates.
98
Their main purpose is to secure a harmonized, easy-to-maintain, and up-to-date collection of reusable CI workflows for our [Snakemake pipelines](https://github.com/orgs/MPUSP/repositories).
109

10+
## Workflows
11+
12+
Currently available workflows include:
13+
14+
- `snakemake-tests`: Runs standardized tests for Snakemake workflows.
15+
- `deploy-apptainer`: Builds and deploys Apptainer containers for Snakemake workflows to GitHub Packages ([GHCR](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry)). **Note**: work in progress, use carefully!
16+
- `release-please`: Automates the release process using the [release-please](https://github.com/googleapis/release-please) tool.
17+
- `conventional-prs`: Lints pull requests for conventional commit messages.
18+
1119
## Usage
1220

13-
To use these workflows in your repository, reference them in your workflow files:
21+
To use these workflows in your repository, reference them in your workflow files as outlined below.
22+
Note: workflows can be pinned to a specific version tag (`@v1.0`), but it is recommended to use the latest stable version (`@main`) in order to keep manual intervention in workflows to a minimum.
23+
24+
### Snakemake Tests
1425

1526
```yaml
27+
name: Snakemake Tests
28+
29+
on:
30+
pull_request:
31+
branches: [main]
32+
1633
jobs:
17-
my-job:
18-
uses: mpusp/mpusp-github-actions/.github/workflows/workflow-name.yml@main
34+
snakemake-tests:
35+
uses: MPUSP/mpusp-github-actions/.github/workflows/snakemake-tests.yml@main
36+
with:
37+
cores: 2
38+
dryrun: false
1939
```
2040
21-
## Workflows
41+
### Deploy Apptainer
2242
23-
Documentation for individual workflows coming soon.
43+
```yaml
44+
name: Deploy Apptainer
45+
46+
on:
47+
workflow_run:
48+
workflows: ["Release Please"]
49+
types:
50+
- completed
51+
workflow_dispatch:
52+
53+
permissions:
54+
contents: read
55+
packages: write
56+
57+
jobs:
58+
deploy-apptainer:
59+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
60+
uses: MPUSP/mpusp-github-actions/.github/workflows/deploy-apptainer.yml@main
61+
```
62+
63+
### Release Please
64+
65+
```yaml
66+
name: Release Please
67+
68+
on:
69+
push:
70+
branches: [main]
71+
72+
permissions:
73+
contents: write
74+
pull-requests: write
75+
issues: write
76+
77+
jobs:
78+
release-please:
79+
uses: MPUSP/mpusp-github-actions/.github/workflows/release-please.yml@main
80+
```
81+
82+
### Conventional PRs
83+
84+
```yaml
85+
name: Conventional PRs
86+
87+
on:
88+
pull_request_target:
89+
types:
90+
- opened
91+
- reopened
92+
- edited
93+
- synchronize
94+
95+
permissions:
96+
pull-requests: read
97+
98+
jobs:
99+
conventional-prs:
100+
uses: MPUSP/mpusp-github-actions/.github/workflows/conventional-prs.yml@main
101+
```
24102
25103
## Contributing
26104
27105
For issues and comments, please leave an issue on [Github](https://github.com/MPUSP/mpusp-github-actions/issues).
28106
For further questions, please contact bioinformatics@mpusp.mpg.de.
107+
108+
## Authors
109+
110+
- MPUSP bioinformatics team (http://mpusp.github.io/)

0 commit comments

Comments
 (0)