Adapt git actions
This commit is contained in:
parent
5c51a18d0c
commit
a58b310998
2 changed files with 11 additions and 37 deletions
28
.github/workflows/pyinstaller.yml
vendored
28
.github/workflows/pyinstaller.yml
vendored
|
@ -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
|
|
20
.github/workflows/pytest.yml
vendored
20
.github/workflows/pytest.yml
vendored
|
@ -7,21 +7,23 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
python-version: [3.10.13]
|
python-version: [3.13.1]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up rye
|
- name: Install the latest version of uv
|
||||||
uses: sksat/setup-rye@v0.23.1
|
uses: astral-sh/setup-uv@v4
|
||||||
- name: Sync dependencies using rye
|
with:
|
||||||
|
version: "latest"
|
||||||
|
- name: Sync dependencies using uv
|
||||||
run: |
|
run: |
|
||||||
rye pin ${{ matrix.python-version }}
|
uv python pin ${{ matrix.python-version }}
|
||||||
rye sync
|
uv sync
|
||||||
- name: Pytest and Coverage
|
- name: Pytest and Coverage
|
||||||
run: |
|
run: |
|
||||||
rye run coverage run -m --source=stacosys pytest tests
|
PYTHONPATH=src/ uv run coverage run -m --source=stacosys pytest tests
|
||||||
rye run coverage report
|
uv run coverage report
|
||||||
- name: Send report to Coveralls
|
- name: Send report to Coveralls
|
||||||
run: rye run coveralls
|
run: uv run coveralls
|
||||||
env:
|
env:
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue