forked from bazel-contrib/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 874 Bytes
/
ci.yaml
File metadata and controls
43 lines (39 loc) · 874 Bytes
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
name: CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
mypy:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v6
- uses: jpetrucciani/mypy-check@master
with:
path: 'python/runfiles'
- uses: jpetrucciani/mypy-check@master
with:
path: 'tests/runfiles'
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/ruff-action@v4.0.0
with:
# Keep in sync with .pre-commit-config.yaml
version: 0.15.14
args: check --extend-exclude testdata
- uses: astral-sh/ruff-action@v4.0.0
with:
version: 0.15.14
args: format --check --exclude testdata