-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.03 KB
/
check.yml
File metadata and controls
48 lines (45 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: check
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
detect-changes:
runs-on: ubuntu-latest
timeout-minutes: 3
permissions:
pull-requests: read
outputs:
core: ${{ steps.filter.outputs.core }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
core:
- 'packages/core/**'
check-core:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.core == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/core
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-packages
- name: Lint
run: uv run ruff check .
- name: Format
run: uv run ruff format --check .
- name: Run mypy
run: uv run mypy .
- name: Run tests
run: uv run pytest -v --cov -W ignore::DeprecationWarning