Tests Manually Run #28
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: Tests Manually Run | |
on: workflow_dispatch | |
jobs: | |
build: | |
name: ${{ matrix.os }}-Python${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# xgboost requires libomp on macOS | |
- name: Install dependencies on macOS | |
if: runner.os == 'macOS' | |
run: brew install libomp | |
- name: Install | |
run: pip install .[test] | |
- name: Run Tests | |
run: pytest . | |
... |