| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fd2fd34 commit 9ec6db2
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,14 +14,11 @@ jobs: | |||
| 14 | 14 | ||
| 15 | 15 | - name: Install uv | |
| 16 | 16 | uses: astral-sh/setup-uv@v3 | |
| 17 | - | ||
| 18 | - - name: "Set up Python" | ||
| 19 | - uses: actions/setup-python@v5 | ||
| 20 | 17 | with: | |
| 21 | - python-version-file: ".python-version" | ||
| 18 | + enable-cache: true | ||
| 22 | 19 | ||
| 23 | - - name: Install the project | ||
| 24 | - run: uv sync --frozen --all-extras --dev | ||
| 20 | + - name: Set up Python 3.12 | ||
| 21 | + run: uv python install 3.12 | ||
| 25 | 22 | ||
| 26 | 23 | - name: Build | |
| 27 | 24 | run: uv build | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,16 +14,11 @@ jobs: | |||
| 14 | 14 | with: | |
| 15 | 15 | enable-cache: true | |
| 16 | 16 | ||
| 17 | - - name: "Set up Python" | ||
| 18 | - uses: actions/setup-python@v5 | ||
| 19 | - with: | ||
| 20 | - python-version-file: ".python-version" | ||
| 21 | - | ||
| 22 | 17 | - name: Install the project | |
| 23 | - run: uv sync --frozen --all-extras --dev | ||
| 18 | + run: uv sync --frozen --all-extras --dev --python 3.12 | ||
| 24 | 19 | ||
| 25 | 20 | - name: Run ruff format check | |
| 26 | - run: uv run --frozen ruff check . | ||
| 21 | + run: uv run --no-sync ruff check . | ||
| 27 | 22 | ||
| 28 | 23 | typecheck: | |
| 29 | 24 | runs-on: ubuntu-latest | |
@@ -35,19 +30,17 @@ jobs: | |||
| 35 | 30 | with: | |
| 36 | 31 | enable-cache: true | |
| 37 | 32 | ||
| 38 | - - name: "Set up Python" | ||
| 39 | - uses: actions/setup-python@v5 | ||
| 40 | - with: | ||
| 41 | - python-version-file: ".python-version" | ||
| 42 | - | ||
| 43 | 33 | - name: Install the project | |
| 44 | - run: uv sync --frozen --all-extras --dev | ||
| 34 | + run: uv sync --frozen --all-extras --dev --python 3.12 | ||
| 45 | 35 | ||
| 46 | 36 | - name: Run pyright | |
| 47 | - run: uv run --frozen pyright | ||
| 37 | + run: uv run --no-sync pyright | ||
| 48 | 38 | ||
| 49 | - build: | ||
| 39 | + test: | ||
| 50 | 40 | runs-on: ubuntu-latest | |
| 41 | + strategy: | ||
| 42 | + matrix: | ||
| 43 | + python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
| 51 | 44 | ||
| 52 | 45 | steps: | |
| 53 | 46 | - uses: actions/checkout@v4 | |
@@ -57,13 +50,8 @@ jobs: | |||
| 57 | 50 | with: | |
| 58 | 51 | enable-cache: true | |
| 59 | 52 | ||
| 60 | - - name: "Set up Python" | ||
| 61 | - uses: actions/setup-python@v5 | ||
| 62 | - with: | ||
| 63 | - python-version-file: ".python-version" | ||
| 64 | - | ||
| 65 | 53 | - name: Install the project | |
| 66 | - run: uv sync --frozen --all-extras --dev | ||
| 54 | + run: uv sync --frozen --all-extras --dev --python ${{ matrix.python-version }} | ||
| 67 | 55 | ||
| 68 | 56 | - name: Run pytest | |
| 69 | - run: uv run --frozen pytest | ||
| 57 | + run: uv run --no-sync pytest | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments