Skip to content

Commit 4d9a4ad

Browse files
committed
Add ruff to tests, adjust CI/CD runs
1 parent 2a756a4 commit 4d9a4ad

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/check-links.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Check links in markdown
22

3-
on: push
3+
on: [push, pull_request]
44

55
jobs:
66
test_links_in_readme:

.github/workflows/ruff.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Check if code is formatted
2+
on: [ push, pull_request ]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: astral-sh/ruff-action@v1
9+
with:
10+
args: --version
11+
- uses: astral-sh/ruff-action@v1
12+
with:
13+
args: format --check

.github/workflows/run-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222
allow-prereleases: true
2323
- name: Install dependencies
24-
run: pip install pytest pytest-md pytest-emoji pytest-mypy
24+
run: |
25+
pip install pytest pytest-md pytest-emoji pytest-mypy
26+
pip install multicast_expert
2527
- uses: pavelzw/pytest-action@v2
2628
with:
2729
verbose: true

0 commit comments

Comments
 (0)