diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 14215bc..12467cb 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -16,14 +16,16 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version-file: ".python-version" + - name: Install uv uses: astral-sh/setup-uv@v5 with: version: "0.5.x" enable-cache: true + - run: uv run make lint - \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a188121..9611af1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,25 +7,30 @@ on: permissions: contents: read +# TDDO: migrate to uv for building + jobs: deploy: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version-file: ".python-version" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + + - name: Build package + run: python -m build + + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}