Skip to content

Commit 454de00

Browse files
tweaks
1 parent 58edc16 commit 454de00

2 files changed

Lines changed: 193 additions & 16 deletions

File tree

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# This file is autogenerated by maturin v1.9.4
2+
# To update, run
3+
#
4+
# maturin generate-ci github
5+
#
6+
# name: Python-Publish
7+
8+
# on:
9+
# push:
10+
# branches:
11+
# - stable
12+
# workflow_dispatch:
13+
14+
# permissions:
15+
# contents: read
16+
17+
# jobs:
18+
# linux:
19+
# runs-on: ${{ matrix.platform.runner }}
20+
# strategy:
21+
# matrix:
22+
# platform:
23+
# - runner: ubuntu-22.04
24+
# target: x86_64
25+
# - runner: ubuntu-22.04
26+
# target: x86
27+
# - runner: ubuntu-22.04
28+
# target: aarch64
29+
# - runner: ubuntu-22.04
30+
# target: armv7
31+
# - runner: ubuntu-22.04
32+
# target: s390x
33+
# - runner: ubuntu-22.04
34+
# target: ppc64le
35+
# steps:
36+
# - uses: actions/checkout@v6
37+
# - uses: actions/setup-python@v5
38+
# with:
39+
# python-version: 3.x
40+
# - name: Build wheels
41+
# uses: PyO3/maturin-action@v1
42+
# with:
43+
# target: ${{ matrix.platform.target }}
44+
# args: --release --out dist --find-interpreter
45+
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
46+
# manylinux: auto
47+
# - name: Upload wheels
48+
# uses: actions/upload-artifact@v4
49+
# with:
50+
# name: wheels-linux-${{ matrix.platform.target }}
51+
# path: dist
52+
53+
# musllinux:
54+
# runs-on: ${{ matrix.platform.runner }}
55+
# strategy:
56+
# matrix:
57+
# platform:
58+
# - runner: ubuntu-22.04
59+
# target: x86_64
60+
# - runner: ubuntu-22.04
61+
# target: x86
62+
# - runner: ubuntu-22.04
63+
# target: aarch64
64+
# - runner: ubuntu-22.04
65+
# target: armv7
66+
# steps:
67+
# - uses: actions/checkout@v6
68+
# - uses: actions/setup-python@v5
69+
# with:
70+
# python-version: 3.x
71+
# - name: Build wheels
72+
# uses: PyO3/maturin-action@v1
73+
# with:
74+
# target: ${{ matrix.platform.target }}
75+
# args: --release --out dist --find-interpreter
76+
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
77+
# manylinux: musllinux_1_2
78+
# - name: Upload wheels
79+
# uses: actions/upload-artifact@v4
80+
# with:
81+
# name: wheels-musllinux-${{ matrix.platform.target }}
82+
# path: dist
83+
84+
# windows:
85+
# runs-on: ${{ matrix.platform.runner }}
86+
# strategy:
87+
# matrix:
88+
# platform:
89+
# - runner: windows-latest
90+
# target: x64
91+
# - runner: windows-latest
92+
# target: x86
93+
# steps:
94+
# - uses: actions/checkout@v6
95+
# - uses: actions/setup-python@v5
96+
# with:
97+
# python-version: 3.x
98+
# architecture: ${{ matrix.platform.target }}
99+
# - name: Build wheels
100+
# uses: PyO3/maturin-action@v1
101+
# with:
102+
# target: ${{ matrix.platform.target }}
103+
# args: --release --out dist --find-interpreter
104+
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
105+
# - name: Upload wheels
106+
# uses: actions/upload-artifact@v4
107+
# with:
108+
# name: wheels-windows-${{ matrix.platform.target }}
109+
# path: dist
110+
111+
# macos:
112+
# runs-on: ${{ matrix.platform.runner }}
113+
# strategy:
114+
# matrix:
115+
# platform:
116+
# - runner: macos-13
117+
# target: x86_64
118+
# - runner: macos-14
119+
# target: aarch64
120+
# steps:
121+
# - uses: actions/checkout@v6
122+
# - uses: actions/setup-python@v5
123+
# with:
124+
# python-version: 3.x
125+
# - name: Build wheels
126+
# uses: PyO3/maturin-action@v1
127+
# with:
128+
# target: ${{ matrix.platform.target }}
129+
# args: --release --out dist --find-interpreter
130+
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
131+
# - name: Upload wheels
132+
# uses: actions/upload-artifact@v4
133+
# with:
134+
# name: wheels-macos-${{ matrix.platform.target }}
135+
# path: dist
136+
137+
# sdist:
138+
# runs-on: ubuntu-latest
139+
# steps:
140+
# - uses: actions/checkout@v6
141+
# - name: Build sdist
142+
# uses: PyO3/maturin-action@v1
143+
# with:
144+
# command: sdist
145+
# args: --out dist
146+
# - name: Upload sdist
147+
# uses: actions/upload-artifact@v4
148+
# with:
149+
# name: wheels-sdist
150+
# path: dist
151+
152+
# release:
153+
# name: Release
154+
# runs-on: ubuntu-latest
155+
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
156+
# needs: [linux, musllinux, windows, macos, sdist]
157+
# permissions:
158+
# # Use to sign the release artifacts
159+
# id-token: write
160+
# # Used to upload release artifacts
161+
# contents: write
162+
# # Used to generate artifact attestation
163+
# attestations: write
164+
# steps:
165+
# - uses: actions/download-artifact@v4
166+
# - name: Generate artifact attestation
167+
# uses: actions/attest-build-provenance@v2
168+
# with:
169+
# subject-path: 'wheels-*/*'
170+
# - name: Publish to PyPI
171+
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
172+
# uses: PyO3/maturin-action@v1
173+
# env:
174+
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
175+
# with:
176+
# command: upload
177+
# args: --non-interactive --skip-existing wheels-*/*

.github/workflows/tests.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,25 @@ jobs:
6767
run: uv sync
6868

6969
- name: Build Python extension
70-
run: maturin develop --release
70+
run: uv run maturin develop --release
7171

7272
- name: Run Python tests
73-
run: pytest blastdns/tests -vv
73+
run: uv run pytest blastdns/tests -vv
7474

75-
rust-publish:
76-
needs: rust-tests
77-
runs-on: ubuntu-latest
78-
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
75+
# rust-publish:
76+
# needs: rust-tests
77+
# runs-on: ubuntu-latest
78+
# if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
7979

80-
steps:
81-
- uses: actions/checkout@v5
80+
# steps:
81+
# - uses: actions/checkout@v5
8282

83-
- name: Install Rust toolchain
84-
uses: actions-rs/toolchain@v1
85-
with:
86-
toolchain: stable
87-
override: true
88-
profile: minimal
83+
# - name: Install Rust toolchain
84+
# uses: actions-rs/toolchain@v1
85+
# with:
86+
# toolchain: stable
87+
# override: true
88+
# profile: minimal
8989

90-
- name: Publish to crates.io
91-
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
90+
# - name: Publish to crates.io
91+
# run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)