-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1 KB
/
pypi-test-deploy.yml
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
51
name: Upload Python Package TestPyPI
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
pypi-publish:
name: testpypi
runs-on: ubuntu-latest
environment:
name: "testpypi"
url: https://test.pypi.org/p/wispy
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Initialize conda environment
run: make conda-create
- name: Setup conda
run: make conda-setup
- name: Install conda dependencies
run: make from-conda-lock
- name: Install dependencies
run: make install
- name: Build package
run: make build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/