-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (33 loc) · 1.03 KB
/
testpypi.yaml
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
name: publish to testpypi
on: workflow_dispatch
jobs:
build-and-publish:
name: build and publish
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yml
activate-environment: lhorizon
auto-update-conda: false
python-version: 3.11
miniforge-version: latest
conda-remove-defaults: "true"
- name: Set up conda environment
shell: bash -l {0}
run: |
python -m pip install -e .
conda list
- name: install build
run: conda install -n lhorizon build
- name: build binary & source
shell: bash -l {0}
run: |
conda activate lhorizon
python -m build --sdist --wheel --outdir dist/
- name: publish to TestPyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/