Skip to content

Commit 436d0cb

Browse files
authored
Merge pull request #107 from RedisGraph/rafi-pypi-1
Fix for publish-pypi workflow
2 parents 5008a0b + 6f0f20d commit 436d0cb

File tree

2 files changed

+12
-23
lines changed

2 files changed

+12
-23
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Publish Pypi
2+
23
on:
4+
workflow_dispatch:
35
release:
46
types: [ published ]
57

@@ -10,7 +12,7 @@ jobs:
1012
env:
1113
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1214
steps:
13-
- uses: actions/checkout@master
15+
- uses: actions/checkout@v3
1416

1517
- name: get version from tag
1618
id: get_version
@@ -26,31 +28,18 @@ jobs:
2628
key: "tool.poetry.version"
2729
value: "${{ steps.get_version.outputs.VERSION }}"
2830

29-
- name: Set up Python 3.9
30-
uses: actions/setup-python@v3
31+
- name: Set up Python
32+
uses: actions/setup-python@v4
3133
with:
3234
python-version: 3.9
3335

34-
- name: Install Poetry
35-
uses: dschep/[email protected]
36-
37-
- name: Cache Poetry virtualenv
38-
uses: actions/cache@v3
39-
id: cache
40-
with:
41-
path: ~/.virtualenvs
42-
key: poetry-${{ hashFiles('**/poetry.lock') }}
43-
restore-keys: |
44-
poetry-${{ hashFiles('**/poetry.lock') }}
45-
46-
- name: Set Poetry config
36+
- name: Prepare environment
4737
run: |
48-
poetry config virtualenvs.in-project false
49-
poetry config virtualenvs.path ~/.virtualenvs
50-
51-
- name: Install Dependencies
52-
run: poetry install
53-
if: steps.cache.outputs.cache-hit != 'true'
38+
python -m venv .venv
39+
source .venv/bin/activate
40+
pip install -U setuptools pip poetry==1.3.2 tox-poetry
41+
poetry config virtualenvs.create false
42+
poetry install
5443
5544
- name: Publish to PyPI
5645
if: github.event_name == 'release'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisgraph-bulk-loader"
3-
version = "0.12.1"
3+
version = "0.12.2"
44
description = "RedisGraph Bulk Import Tool"
55
authors = ["Redis Inc <[email protected]>"]
66
license = "BSD-3-Clause"

0 commit comments

Comments
 (0)