Release 1.1.0 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:DT_BUILD_ID | |
if ($env:GITHUB_EVENT_NAME -eq 'pull_request') { | |
if ($env:GITHUB_PULL_REQUEST_HEAD_REPO_BRANCH -match '^rel-') { | |
echo "DT_RELEASE=True" >> $env:DT_RELEASE | |
} else { | |
echo "DT_BUILD_SUFFIX=PR$($env:GITHUB_EVENT_NUMBER).$env:DT_BUILD_ID" >> $env:DT_BUILD_SUFFIX | |
} | |
} elseif ($env:GITHUB_REF -eq 'refs/heads/main') { | |
echo "DT_BUILD_NUMBER=$env:DT_BUILD_ID" >> $env:DT_BUILD_NUMBER | |
} elseif ($env:GITHUB_REF -match '^refs/heads/rel-') { | |
echo "DT_RELEASE=True" >> $env:DT_RELEASE | |
} else { | |
echo "DT_BUILD_SUFFIX=$env:GITHUB_REF.$env:DT_BUILD_ID" >> $env:DT_BUILD_SUFFIX | |
} | |
- 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_PULL_REQUEST_HEAD_REPO_BRANCH = $env:GITHUB_PULL_REQUEST_HEAD_REPO_BRANCH" | |
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)" >> $GITHUB_ENV | |
echo "DT_WHEEL = $DT_WHEEL" | |
- name: Print build information | |
run: | | |
cat src/datatable/_build_info.py | |
- name: Install and test | |
run: | | |
python -m pip install $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 $DT_WHEEL |