Skip to content

Commit 523ef32

Browse files
committed
test symlink
1 parent 31d1415 commit 523ef32

6 files changed

Lines changed: 142 additions & 139 deletions

File tree

.github/workflows/lint.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../workflows/lint.yml

.github/workflows/release.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../workflows/release.yml

.github/workflows/test.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../workflows/test.yml

workflows/lint.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Cancel previous run
10+
uses: styfle/cancel-workflow-action@0.11.0
11+
with:
12+
access_token: ${{ github.token }}
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-go@v3
15+
with:
16+
go-version: ">=1.16.0"
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.12"
21+
- name: Upgrade pip
22+
run: |
23+
python -m pip install --upgrade pip
24+
- name: ruff check
25+
run: |
26+
make ruff
27+
- name: ruff format
28+
run: |
29+
make py-format
30+
- name: cpplint
31+
run: |
32+
make cpplint
33+
- name: clang-format
34+
run: |
35+
make clang-format
36+
- name: buildifier
37+
run: |
38+
make buildifier
39+
- name: addlicense
40+
run: |
41+
make addlicense
42+
- name: mypy
43+
run: |
44+
make mypy
45+
- name: docstyle
46+
run: |
47+
make docstyle
48+
- name: spelling
49+
run: |
50+
make spelling

workflows/release.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Release PyPI Wheel
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
container: quay.io/pypa/manylinux_2_28_x86_64
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.11", "3.12", "3.13"]
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Install build dependencies
21+
run: |
22+
dnf install -y git curl wget zsh gcc gcc-c++ make tmux golang java-17-openjdk-devel qt5-qtbase-devel qt5-qtdeclarative-devel
23+
dnf clean all
24+
ln -sf "$(qmake-qt5 -query QT_INSTALL_HEADERS)" /usr/include/qt
25+
go install github.com/bazelbuild/bazelisk@latest
26+
ln -sf /root/go/bin/bazelisk /usr/local/bin/bazelisk
27+
ln -sf /root/go/bin/bazelisk /usr/local/bin/bazel
28+
- name: Set up Python ${{ matrix.python-version }}
29+
shell: bash
30+
run: |
31+
case "${{ matrix.python-version }}" in
32+
3.11) PYBIN=/opt/python/cp311-cp311/bin ;;
33+
3.12) PYBIN=/opt/python/cp312-cp312/bin ;;
34+
3.13) PYBIN=/opt/python/cp313-cp313/bin ;;
35+
*) echo "unsupported python version: ${{ matrix.python-version }}" >&2; exit 1 ;;
36+
esac
37+
echo "$PYBIN" >> "$GITHUB_PATH"
38+
"$PYBIN/python3" --version
39+
- name: Build
40+
run: |
41+
make pypi-wheel
42+
pip3 install dist/*.whl --force-reinstall
43+
- name: Test
44+
run: |
45+
make release-test
46+
- name: Upload artifact
47+
uses: actions/upload-artifact@v7
48+
with:
49+
name: wheel-${{ matrix.python-version }}
50+
path: wheelhouse/
51+
if-no-files-found: error
52+
53+
publish:
54+
runs-on: ubuntu-latest
55+
needs: [release]
56+
steps:
57+
- uses: actions/download-artifact@v8
58+
with:
59+
pattern: wheel-*
60+
path: artifact
61+
merge-multiple: true
62+
- name: Move files so the next action can find them
63+
run: |
64+
mkdir dist && mv artifact/* dist/
65+
ls dist/
66+
- name: Publish distribution to PyPI
67+
if: startsWith(github.ref, 'refs/tags')
68+
uses: pypa/gh-action-pypi-publish@release/v1
69+
with:
70+
password: ${{ secrets.PYPI_API_TOKEN }}

workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Bazel Build and Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: [self-hosted, Linux, X64, Test]
8+
steps:
9+
- name: Cancel previous run
10+
uses: styfle/cancel-workflow-action@0.11.0
11+
with:
12+
access_token: ${{ github.token }}
13+
- uses: actions/checkout@v3
14+
- name: Test
15+
run: |
16+
make bazel-test
17+
- name: Run clang-tidy
18+
run: |
19+
make clang-tidy

0 commit comments

Comments
 (0)