diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index f9b85c9..0000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,35 +0,0 @@ -on: - pull_request: - branches: [main, master] - push: - branches: [main, master] - -name: lint - -env: - PYTHONUNBUFFERED: "1" - UV_SYSTEM_PYTHON: 1 - -jobs: - lint-ruff: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install uv - uses: astral-sh/setup-uv@v3 - with: - enable-cache: true - cache-dependency-glob: pyproject.toml - - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version-file: pyproject.toml - - - name: Install dependencies - run: uv pip install . ruff - - - name: Lint with ruff - run: ruff check --output-format=github . diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index 3b3784b..1423c38 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -9,7 +9,6 @@ name: pages env: PYTHONUNBUFFERED: "1" - UV_SYSTEM_PYTHON: 1 jobs: build-sphinx-site: @@ -22,22 +21,17 @@ jobs: uses: actions/configure-pages@v5 - name: Install uv - uses: astral-sh/setup-uv@v3 - with: - enable-cache: true - cache-dependency-glob: pyproject.toml - cache-suffix: docs + uses: astral-sh/setup-uv@v4 - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version-file: pyproject.toml + shell: bash + run: uv venv - name: Install Python dependencies run: uv pip install .[docs] - name: Generate HTML - run: sphinx-build -d _build/doctrees docs/source _build/html + run: uv run sphinx-build -d _build/doctrees docs/source _build/html - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml index 76f244b..3f9cda8 100644 --- a/.github/workflows/pypi-publish.yaml +++ b/.github/workflows/pypi-publish.yaml @@ -7,7 +7,6 @@ name: pypi-publish env: PYTHONUNBUFFERED: "1" - UV_SYSTEM_PYTHON: 1 jobs: pypi-publish: @@ -23,18 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Install uv - uses: astral-sh/setup-uv@v3 - with: - enable-cache: true - cache-dependency-glob: pyproject.toml - - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version-file: pyproject.toml - - - name: Install Python dependencies - run: uv pip install . + uses: astral-sh/setup-uv@v4 - name: Build Python dist run: uv build diff --git a/.github/workflows/python-build-and-test.yaml b/.github/workflows/python-build-and-test.yaml index 3ee77f8..fc56f99 100644 --- a/.github/workflows/python-build-and-test.yaml +++ b/.github/workflows/python-build-and-test.yaml @@ -6,6 +6,9 @@ on: name: python-build-and-test +env: + PYTHONUNBUFFERED: "1" + jobs: build-and-test: runs-on: ubuntu-latest @@ -19,11 +22,11 @@ jobs: uses: actions/checkout@v4 - name: Install uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v4 with: enable-cache: true cache-dependency-glob: pyproject.toml - cache-suffix: tox + cache-suffix: ${{ matrix.python-version }}-tox - name: Setup Python ${{ matrix.python-version }} uses: actions/setup-python@v5 diff --git a/pyproject.toml b/pyproject.toml index 12dc8df..72aff86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,6 +86,9 @@ python = [testenv] extras = dev commands = pytest +passenv = + UV_CACHE_DIR + PYTHONUNBUFFERED [testenv:py{39, 310}-lowest] uv_resolution = lowest-direct