rawcpu/.github/workflows/ci.yml
2026-07-19 23:29:46 +05:00

27 lines
718 B
YAML

name: ci
on:
push:
branches: [master]
jobs:
test:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: ilammy/msvc-dev-cmd@v1
- run: cl /LD /EHsc /Fe:src\rawcpu\rawcpu.dll native\rawcpu.cpp
- run: pip install -e .[dev]
- run: pytest --cov=rawcpu --cov-report=xml
- uses: codecov/codecov-action@v4
if: matrix.python-version == '3.12'
with:
files: ./coverage.xml
- run: python -m build
- run: python -m twine check dist/*