Skip to content

Commit

Permalink
Merge pull request #226 from RedisLabsModules/guyav-fix_release
Browse files Browse the repository at this point in the history
Fix Release Flow
  • Loading branch information
meiravgri authored Nov 26, 2024
2 parents a56c01b + 76d76d2 commit 7fdb511
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,17 @@ jobs:
TAG: ${{ github.event.release.tag_name }}
run: echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Cache Poetry virtualenv
uses: actions/cache@v3
id: cache
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install Poetry
run: pipx install poetry

- name: Install poetry
uses: snok/install-poetry@v1
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
version: 1.2.2
virtualenvs-create: false
virtualenvs-in-project: false
installer-parallel: true
python-version: 3.12
cache: 'poetry'

- name: Install Python dependencies
run: |
sudo apt-get install -y python-setuptools python3-setuptools
pip install poetry
poetry config virtualenvs.create false
poetry export --dev --without-hashes -o requirements.txt
pip install -r requirements.txt
poetry version ${{ steps.get_version.outputs.VERSION }}
poetry install
Expand Down

0 comments on commit 7fdb511

Please sign in to comment.