Adapt git actions

This commit is contained in:
Yax 2024-12-09 14:03:04 +01:00
parent 5c51a18d0c
commit a58b310998
2 changed files with 11 additions and 37 deletions

View file

@ -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

View file

@ -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 }}