Skip to content

Commit 1a4acab

Browse files
committed
conda sdist
1 parent e754f4d commit 1a4acab

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/_build-pyobjcryst-package.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,38 @@ on:
55

66
jobs:
77
build_sdist:
8+
defaults:
9+
run:
10+
shell: bash -l {0}
11+
812
name: Build pyobjcryst sdist
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v4
1216
with:
1317
ref: ${{ github.ref }}
1418

19+
- name: Initialize miniconda
20+
uses: conda-incubator/setup-miniconda@v3
21+
with:
22+
activate-environment: sdist
23+
channels: conda-forge
24+
auto-update-conda: true
25+
auto-activate-base: false
26+
python-version: 3.13
27+
28+
- name: Conda config
29+
run: >-
30+
conda config --set always_yes yes
31+
--set changeps1 no
32+
33+
- name: Install pyobjcryst and requirements
34+
run: |
35+
conda install --file requirements/conda.txt
36+
conda install --file requirements/build.txt
37+
1538
- name: Build sdist
16-
run: pipx run build --sdist
39+
run: python -m build --sdist
1740

1841
- uses: actions/upload-artifact@v4
1942
with:

0 commit comments

Comments
 (0)