Skip to content

Commit 3270ba9

Browse files
author
spencer@primus
committed
WIP on build release
1 parent 08e0c9f commit 3270ba9

File tree

3 files changed

+44
-21
lines changed

3 files changed

+44
-21
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Init python and poetry
2+
description: Installs python and poetry
3+
4+
inputs:
5+
python-version:
6+
description: Version of python to use
7+
required: true
8+
default: 3.10
9+
poetry-version:
10+
description: Version of poetry to install
11+
required: true
12+
default: 1.6.1
13+
14+
runs:
15+
- name: Set up Python ${{ inputs.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ inputs.python-version }}
19+
20+
- name: Set up Poetry ${{ inputs.poetry-version }}
21+
uses: abatilo/[email protected]
22+
with:
23+
poetry-version: ${{ inputs.poetry-version }}

.github/actions/install/action.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ runs:
1919
with:
2020
submodules: recursive
2121

22-
- name: Set up Python ${{ inputs.python-version }}
23-
uses: actions/setup-python@v2
24-
with:
25-
python-version: ${{ inputs.python-version }}
26-
27-
- name: Set up Poetry ${{ inputs.poetry-version }}
28-
uses: abatilo/[email protected]
22+
-name: Init python and poetry
23+
uses: ./.github/actions/init-poetry
2924
with:
25+
python-version: ${{ inputs.python-version }}
3026
poetry-version: ${{ inputs.poetry-version }}
3127

3228
- name: Set up cache
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish a release to PyPI
1+
name: Publish a release to TestPyPI
22

33
on:
44
push:
@@ -7,26 +7,30 @@ on:
77

88
jobs:
99
# the tests must pass before release is to be made
10-
test:
11-
name: Run unit tests on release branch
12-
uses: ./.github/workflows/test_on_branch.yml
13-
with:
14-
branch: release
15-
os: ubuntu-22.04
10+
# test:
11+
# name: Run unit tests on release branch
12+
# uses: ./.github/workflows/test_on_branch.yml
13+
# with:
14+
# branch: release
15+
# os: ubuntu-22.04
1616

1717
# then we build to prep for release
1818
build:
1919
name: Build and publish the package to pypi
20-
needs: test
20+
# needs: test
2121
runs-on: ubuntu-22.04
2222
steps:
2323
- uses: actions/checkout@v4
2424
with:
2525
submodules: recursive
26-
- name: Build and publish to pypi
27-
uses: JRubics/[email protected]
26+
27+
- name: Init poetry and python
28+
uses: ./.github/actions/init-poetry
2829
with:
29-
python_version: "3.10"
30-
poetry_version: "==1.6.1" # (PIP version specifier syntax)
31-
pypi_token: ${{ secrets.PYPI_TOKEN }}
32-
repository_name: "testpypi"
30+
python-version: 3.10
31+
poetry-version: 1.6.1
32+
33+
- name: Build package
34+
shell: bash
35+
run: |
36+
poetry build

0 commit comments

Comments
 (0)