-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (35 loc) · 1.05 KB
/
publish_test.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
name: Publish to test PyPI
on:
workflow_dispatch:
jobs:
publish_test:
runs-on: ubuntu-20.04
permissions:
id-token: write
environment:
name: testpypi
url: https://test.pypi.org/p/replay-rec
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install full package
run: |
python -m venv venv
. ./venv/bin/activate
pip install --upgrade pip wheel poetry==1.5.1 poetry-dynamic-versioning lightfm==1.17
poetry cache clear pypi --all
./poetry_wrapper.sh --experimental install --all-extras
- name: Build
run: |
. ./venv/bin/activate
export PACKAGE_SUFFIX=.preview
echo $PACKAGE_SUFFIX
./poetry_wrapper.sh --experimental build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/