This commit is contained in:
adamnsandle
2025-08-25 14:27:15 +00:00
parent 485a7d91b0
commit b0fbf4bec6

View File

@@ -1,19 +1,16 @@
name: Test Package name: Test Package Linux
on: on:
workflow_dispatch: # запуск вручную workflow_dispatch: # запуск вручную
#push:
# branches:
# - master # или любая тестовая ветка
jobs: jobs:
test: test:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest, windows-latest, macos-latest]
#python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"] python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
python-version: ["3.10"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -32,7 +29,11 @@ jobs:
run: python -m build --wheel --outdir dist run: python -m build --wheel --outdir dist
- name: Install package - name: Install package
run: pip install dist/*.whl run: |
import glob, subprocess, sys
whl = glob.glob("dist/*.whl")[0]
subprocess.check_call([sys.executable, "-m", "pip", "install", whl])
shell: python
- name: Run tests - name: Run tests
run: pytest tests run: pytest tests