Skip to content

switched order of installation #4

switched order of installation

switched order of installation #4

name: Python Extension CI
on:
push:
branches:
- main
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install build dependencies
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
fi
- name: Install test dependencies
run: |
python -m pip install -r requirements.txt
- name: Build Python extension
run: |
python setup.py build_ext --inplace
- name: Run tests with pytest
run: |
pytest