-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (41 loc) · 1.02 KB
/
Copy pathwheels.yml
File metadata and controls
50 lines (41 loc) · 1.02 KB
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
45
46
47
48
49
50
name: Wheels
on:
push:
branches: [main]
pull_request:
branches: ["*"]
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch full git history for hatch-vcs
fetch-tags: true # Fetch tags for hatch-vcs
- uses: prefix-dev/setup-pixi@v0
with:
pixi-version: v0.62.1
cache: true
environments: dist
- name: Build sdist and wheels
run: pixi run dist
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install wheel
run: pip install dist/*.whl
- name: Smoke test
working-directory: /tmp
run: |
cp ${{ github.workspace }}/smoke_test.py .
python smoke_test.py
- uses: actions/upload-artifact@v6
with:
name: dist
path: dist/*
if-no-files-found: error