Skip to content

Commit

Permalink
feat: switch build system to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
psadi committed Dec 13, 2024
1 parent a94a83d commit 735f063
Show file tree
Hide file tree
Showing 4 changed files with 1,061 additions and 1,221 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,16 @@ jobs:
restore-keys: |
${{ runner.os }}-tox-
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Prepare Environment, Sync Dependencies and Run Tox
run: |
mkdir -p ~/.config/bb
cp config.ini ~/.config/bb
pdm fix
pdm sync
pdm run tox
uv sync
uv tool install tox --with tox-uv
tox
- name: SonarCloud Scan
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand All @@ -96,7 +94,7 @@ jobs:
with:
args: |
-Dsonar.projectKey=psadi_bbcli
-Dsonar.organization=psadi
-Dsonar.organization=psadi_bbcli
-Dsonar.python.version=3
-Dsonar.sources=bb
-Dsonar.tests=tests
Expand All @@ -121,7 +119,7 @@ jobs:

- name: Run build and generate artifacts
run: |
pdm build
uv build
- uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down
Loading

0 comments on commit 735f063

Please sign in to comment.