Skip to content

use github actions to build Windows releases for pypi #31

use github actions to build Windows releases for pypi

use github actions to build Windows releases for pypi #31

Workflow file for this run

# This workflow will install Python dependencies, and runs tests with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Continuous Integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
python-version: ['3.7', '3.9', '3.12']
os: ['ubuntu-latest', 'windows-latest', 'macOs-latest']
architecture: ['x64']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: install-windows
if: matrix.os == 'windows-latest'
run: |
"%VS140COMNTOOLS%../../VC/vcvarsall.bat"
echo "$INCLUDE"
set INCLUDE "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt"
pip install --timeout=120 -vv .
- name: install-unix
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOs-latest'
run: |
pip install --timeout=120 .
- name: Test-unix with pytest
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOs-latest'
run: |
pip install pytest
pytest tests/*.py
- name: Test-windows with pytest
if: matrix.os == 'windows-latest'
shell: cmd
run: |
pip install pytest
pytest tests\pytrec_eval_tests.py