diff options
| author | eduardormorais <eduardoromorais@gmail.com> | 2025-09-18 18:07:53 -0300 |
|---|---|---|
| committer | eduardormorais <eduardoromorais@gmail.com> | 2025-09-18 18:07:53 -0300 |
| commit | 9d5341b6933808a6ebec6d69430687a25653dd1c (patch) | |
| tree | e75df141c1f8113ee26bf0999e442d8e6711b657 /.github | |
| parent | e3eb9a3fc5d787cff6acb12528022eeefe55edd1 (diff) | |
| download | pyvyos-9d5341b6933808a6ebec6d69430687a25653dd1c.tar.gz pyvyos-9d5341b6933808a6ebec6d69430687a25653dd1c.zip | |
Feature - Changing the dependency management tool to uv. Updating the Python version and dependencies
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/python-pr-validation.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/python-publish.yml | 22 |
2 files changed, 15 insertions, 16 deletions
diff --git a/.github/workflows/python-pr-validation.yml b/.github/workflows/python-pr-validation.yml index 30f9969..070cd1d 100644 --- a/.github/workflows/python-pr-validation.yml +++ b/.github/workflows/python-pr-validation.yml @@ -14,17 +14,14 @@ jobs: - name: Set up Python 3.12 uses: actions/setup-python@v2 with: - python-version: "3.12" + python-version: "3.13" architecture: "x64" - name: Install dependencies run: | python3 -m pip install --upgrade pip - pip install poetry - pip install pytest - poetry lock - poetry config virtualenvs.create false - poetry install --with dev --no-interaction --no-ansi + pip install uv + uv pip install -e .[dev] - name: Python Run Tests run: | diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a5d4550..d85d1fa 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,23 +17,25 @@ permissions: jobs: deploy: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4.1.1 - - name: Set up Python + + - name: Set up Python 3.13 uses: actions/setup-python@v5.0.0 with: - python-version: "3.12.2" - - name: Install dependencies + python-version: "3.13" + + - name: Install UV and build tools run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build + python -m pip install --upgrade uv + uv build + + - name: Build package with UV + run: uv build + - name: Publish package - uses: pypa/gh-action-pypi-publish@v1.8.14 + uses: pypa/gh-action-pypi-publish@v1.13.0 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} |
