-
Notifications
You must be signed in to change notification settings - Fork 277
41 lines (39 loc) · 944 Bytes
/
test_code_format.yml
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
name: Code Format Check
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
test:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.7", "3.12"]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Hack to get setup-python to work on nektos/act
run: |
if [ ! -f "/etc/lsb-release" ] ; then
echo "DISTRIB_RELEASE=18.04" > /etc/lsb-release
fi
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Set Up Environment
run: |
make install-uv reset-venv
source .venv/bin/activate
make install-pinned-extras
- name: Run Format Check
run: |
source .venv/bin/activate
make format-check
- name: Run Type Check
run: |
source .venv/bin/activate
make type-check