-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 976 Bytes
/
Copy pathpython-build-test.yml
File metadata and controls
44 lines (35 loc) · 976 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
44
name: Python Build & Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: "latest"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Build
run: |
python -m pip install --upgrade pip
pip install scikit-build-core pybind11
pip install -e ".[test]"
- name: Lint
run: |
black python/wrapper python/tests
isort python/wrapper python/tests
flake8 --max-line-length=120 python/wrapper python/tests
- name: Test
run: |
pytest -v python/tests
- name: PyPI
run: |
pip uninstall -y unicode-width-approximation && pip install unicode-width-approximation