Skip to content

Action to test PRs

Action to test PRs #32

Workflow file for this run

name: Windows Package Test
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
# Optional: manual trigger
workflow_dispatch:
jobs:
test-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.12']
architecture: ['x64']
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.architecture }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build pytest pytest-cov
- name: Run tests
run: |
make ci
# Optional: Upload artifacts if your package generates any
- name: Upload artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-artifacts
path: |
./*.log
./tests/results