Skip to content

Commit

Permalink
test version release
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed Jul 7, 2024
1 parent ff2e624 commit bc6e051
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fi
shell: bash

build-and-test:
build-and-package:
needs: validate-tag
runs-on: ubuntu-latest
steps:
Expand All @@ -40,12 +40,17 @@ jobs:
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests
run: |
poetry run pytest
# Comment out the pytest step
# - name: Run tests
# run: |
# poetry run pytest

- name: Build the distribution
run: poetry build

publish-to-pypi:
needs: build-and-test
needs: build-and-package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
33 changes: 28 additions & 5 deletions .github/workflows/test_publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,37 @@ jobs:
build-and-package:
needs: validate-tag
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12'] # Using the same Python versions as in your test workflow

steps:
- uses: actions/checkout@v3
- name: Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install dependencies
run: |
cd lightrag
poetry config virtualenvs.create false
poetry install
# - name: Run tests with pytest
# run: |
# cd lightrag
# poetry run pytest

- name: Build the distribution
run: poetry build
run: |
cd lightrag
poetry build
dry-run-publish:
needs: build-and-package
Expand All @@ -53,6 +70,12 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Dry run publish to PyPI
run: poetry publish --dry-run
run: |
cd lightrag
poetry publish --dry-run
# This step simulates the publishing process without making actual changes
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[tool.poetry]
name = "lightrag-project"
version = "v0.1.0-alpha.5"
version = "v0.1.0-release-test.1"
description = "A project to develop and test the lightrag library"
authors = ["Your Name <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit bc6e051

Please sign in to comment.