Skip to content

Commit a7266ed

Browse files
committed
add gha
1 parent 7dc4509 commit a7266ed

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ci..yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1+
name: ruff
12

3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
- name: echo environment
14+
run: echo ${{ github.ref }} && echo ${{ github.base_ref }} && echo ${{ github.head_ref }}
15+
- name: if base is main
16+
if: ${{ github.ref == 'refs/heads/main' }}
17+
run: echo hat geklappt
18+
- name: Install uv # https://eed-solutions.atlassian.net/wiki/spaces/ES/pages/782434388/Best+Practice+uv+package+management#Github-Actions
19+
uses: astral-sh/setup-uv@v4
20+
with:
21+
enable-cache: true
22+
- name: set up ruff
23+
uses: astral-sh/ruff-action@v3
24+
- name: Run Ruff
25+
run: uv run ruff check --output-format=github

0 commit comments

Comments
 (0)