Skip to content

Commit

Permalink
Merge pull request #15 from SiLab-Bonn/git_badges
Browse files Browse the repository at this point in the history
GIT: added badges for documentation, tests and pre-commit
  • Loading branch information
rpartzsch authored Feb 3, 2025
2 parents 5ef6e05 + 91965f0 commit 8f39a1f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pre-commit

on:
pull_request:
push:
branches: [main, development]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
11 changes: 2 additions & 9 deletions .github/workflows/workflows.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
name: standard tests
name: tests

on:
pull_request:
push:
branches: [main, development]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]

tests:
runs-on: ubuntu-latest
steps:
Expand All @@ -25,4 +18,4 @@ jobs:
- name: Test with pytest
run: |
pytest
pytest -sv
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# AIDA-TLU
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![tests](https://github.com/SiLab-Bonn/aidatlu/actions/workflows/tests.yml/badge.svg)](https://github.com/SiLab-Bonn/aidatlu/actions/workflows/tests.yml)
[![pre-commit](https://github.com/SiLab-Bonn/aidatlu/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/SiLab-Bonn/aidatlu/actions/workflows/pre-commit.yml)
[![documentation](https://github.com/SiLab-Bonn/aidatlu/actions/workflows/documentation.yml/badge.svg)](https://github.com/SiLab-Bonn/aidatlu/actions/workflows/documentation.yml)

Repository for controlling the AIDA-2020 Trigger Logic Unit (TLU) with Python using uHAL bindings from [IPbus](https://ipbus.web.cern.ch/).
The Python control software is based on [EUDAQ2](https://github.com/eudaq/eudaq/tree/master/user/tlu).
Expand Down

0 comments on commit 8f39a1f

Please sign in to comment.