From a58b310998503da4079370297db1e02e00d50326 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:03:04 +0100 Subject: [PATCH] Adapt git actions --- .github/workflows/pyinstaller.yml | 28 ---------------------------- .github/workflows/pytest.yml | 20 +++++++++++--------- 2 files changed, 11 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/pyinstaller.yml diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml deleted file mode 100644 index 7596c01..0000000 --- a/.github/workflows/pyinstaller.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: pyinstaller -on: - push: - branches: [ main ] -jobs: - build_binary: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - python-version: [3.10.13] - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Set up rye - uses: sksat/setup-rye@v0.23.1 - - name: Sync dependencies using rye - run: | - rye pin ${{ matrix.python-version }} - rye sync - - name: Package application - uses: JackMcKew/pyinstaller-action-linux@python3.10 - with: - path: . - - uses: actions/upload-artifact@v4 - with: - name: stacosys-${{ matrix.runs-on }} - path: dist/linux diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0d1c233..defd939 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -7,21 +7,23 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.10.13] + python-version: [3.13.1] steps: - name: Checkout code uses: actions/checkout@v3 - - name: Set up rye - uses: sksat/setup-rye@v0.23.1 - - name: Sync dependencies using rye + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v4 + with: + version: "latest" + - name: Sync dependencies using uv run: | - rye pin ${{ matrix.python-version }} - rye sync + uv python pin ${{ matrix.python-version }} + uv sync - name: Pytest and Coverage run: | - rye run coverage run -m --source=stacosys pytest tests - rye run coverage report + PYTHONPATH=src/ uv run coverage run -m --source=stacosys pytest tests + uv run coverage report - name: Send report to Coveralls - run: rye run coveralls + run: uv run coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}