File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - main
77
88jobs :
9- rel_test :
9+ format :
1010 runs-on : ubuntu-latest
11- needs : lint # Ensure the lint job has succeeded
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.12'
20+
21+ - name : Install dependencies
22+ run : |
23+ pip install poetry
24+ poetry install
25+
26+ - name : Run Ruff Formatting
27+ run : |
28+ poetry run ruff format --config pyproject.toml .
29+
30+ lint :
31+ runs-on : ubuntu-latest
32+ needs : format
33+
34+ steps :
35+ - name : Checkout code
36+ uses : actions/checkout@v4
37+
38+ - name : Set up Python
39+ uses : actions/setup-python@v5
40+ with :
41+ python-version : ' 3.12'
42+
43+ - name : Install dependencies
44+ run : |
45+ pip install poetry
46+ poetry install
47+
48+ - name : Run Ruff Linting
49+ run : |
50+ poetry run ruff check --config pyproject.toml .
51+
52+ type-check :
53+ runs-on : ubuntu-latest
54+ needs : format
55+
56+ steps :
57+ - name : Checkout code
58+ uses : actions/checkout@v4
59+
60+ - name : Set up Python
61+ uses : actions/setup-python@v5
62+ with :
63+ python-version : ' 3.12' # Specify your Python version
64+
65+ - name : Install dependencies
66+ run : |
67+ pip install poetry
68+ poetry install
69+
70+ - name : Run Mypy Type Checking
71+ run : |
72+ poetry run mypy --config-file pyproject.toml .
73+
74+ create_release :
75+ runs-on : ubuntu-latest
76+ needs : [ format, lint, type-check ] # Ensure the lint job has succeeded
1277
1378 steps :
1479 - name : Checkout code
You can’t perform that action at this time.
0 commit comments