Bump xgboost from 2.0.1 to 2.0.2 #354
Workflow file for this run
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
# This workflow uses `pull_request_target` which has access to a WLS license. For security reasons, this workflow | |
# will only be run for PRs from a fork after it has been assessed by a repository owner and has the "safe to test" | |
# label added. Any changes to the PR in need of a retriggering of the workflow require the removal and re-adding of the | |
# "safe to test" label. | |
# | |
# Since a subset of tests was already run in the nolicense workflow, this workflow runs skips the following tests: | |
# - Lint with flake8. | |
name: build and test PR, license required | |
on: | |
pull_request_target: | |
types: [labeled] | |
permissions: | |
contents: read | |
jobs: | |
build_pr_license: | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'safe to test') | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest tox tox-gh-actions | |
- name: install pandoc | |
run: | | |
sudo apt-get update && sudo apt-get install -y pandoc | |
- shell: bash | |
id: write-license | |
env: | |
LICENSE: ${{ secrets.LICENSE }} | |
run: | | |
echo "$LICENSE" > $PWD/gurobi.lic | |
echo "grb_license_file=$PWD/gurobi.lic" >> $GITHUB_OUTPUT | |
- name: Test with tox | |
env: | |
GRB_LICENSE_FILE: ${{ steps.write-license.outputs.grb_license_file }} | |
run: | | |
tox | |
tox -e examples |