Skip to content

Release 1.1.0

Release 1.1.0 #15

name: Build and test wheels on Windows
on:
push:
branches:
- main
- /^rel\-*/
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
env:
DT_HARNESS: GitHub
DT_BUILD_ID: ${{ github.run_id }}
DT_BUILD_NUMBER: ''
DT_BUILD_SUFFIX: ''
DT_RELEASE: ''
DT_MSVC_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Fetch remote branch
run: |
git fetch origin main
- name: Prepare environment variables
run: |
echo "DT_BUILD_ID=$((git rev-list --count origin/main) - 1)" >> $env:GITHUB_ENV
if ($env:GITHUB_EVENT_NAME -eq 'pull_request') {
if ($env:GITHUB_HEAD_REF -match '^rel-') {
echo "DT_RELEASE=True" >> $env:GITHUB_ENV
} else {
echo "DT_BUILD_SUFFIX=PR$($env:GITHUB_EVENT_NUMBER).$env:DT_BUILD_ID" >> $env:GITHUB_ENV
}
} elseif ($env:GITHUB_REF -eq 'refs/heads/main') {
echo "DT_BUILD_NUMBER=$env:DT_BUILD_ID" >> $env:GITHUB_ENV
} elseif ($env:GITHUB_REF -match '^refs/heads/rel-') {
echo "DT_RELEASE=True" >> $env:GITHUB_ENV
} else {
echo "DT_BUILD_SUFFIX=$env:GITHUB_REF.$env:DT_BUILD_ID" >> $env:GITHUB_ENV
}
- name: Print environment
run: |
echo "GITHUB_EVENT_NAME = $env:GITHUB_EVENT_NAME"
echo "GITHUB_EVENT_NUMBER = $env:GITHUB_EVENT_NUMBER"
echo "GITHUB_REF = $env:GITHUB_REF"
echo "GITHUB_HEAD_REF = $env:GITHUB_HEAD_REF"
echo "DT_HARNESS = $env:DT_HARNESS"
echo "DT_BUILD_ID = $env:DT_BUILD_ID"
echo "DT_RELEASE = $env:DT_RELEASE"
echo "DT_BUILD_SUFFIX = $env:DT_BUILD_SUFFIX"
echo "DT_BUILD_NUMBER = $env:DT_BUILD_NUMBER"
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Build datatable wheel
run: |
python -V
python -m pip install --upgrade pip
python ci/ext.py wheel
echo "DT_WHEEL=$(ls dist/*-cp38-*.whl)" >> $env:GITHUB_ENV
echo "DT_WHEEL = $env:DT_WHEEL"
- name: Print build information
run: |
cat src/datatable/_build_info.py
- name: Install and test
run: |
python -m pip install $env:DT_WHEEL
python -m pip install pytest docutils pandas pyarrow
python -m pytest -ra --maxfail=10 -Werror -vv --showlocals ./tests/
- name: Uninstall wheel
run: python -m pip uninstall -y $env:DT_WHEEL