mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2026-03-21 20:18:38 -06:00
👷 Changed build to only run once for Python 3.12
This commit is contained in:
Vendored
+4
-6
@@ -25,9 +25,7 @@ jobs:
|
|||||||
name: Build Distribution
|
name: Build Distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [quality, test]
|
needs: [quality, test]
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version: ["3.12", "3.13"]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -38,8 +36,8 @@ jobs:
|
|||||||
enable-cache: true
|
enable-cache: true
|
||||||
cache-dependency-glob: "pyproject.toml"
|
cache-dependency-glob: "pyproject.toml"
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python 3.12
|
||||||
run: uv python install ${{ matrix.python-version }}
|
run: uv python install 3.12
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: uv sync --dev
|
run: uv sync --dev
|
||||||
@@ -50,7 +48,7 @@ jobs:
|
|||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-python-${{ matrix.python-version }}
|
name: dist-python-3.12
|
||||||
path: dist/
|
path: dist/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user