Test for crash #1
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 | |
on: | |
pull_request: | |
branches: | |
- hauptzweig | |
jobs: | |
run_tests: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
# Use "eager" update strategy in case cached dependencies are outdated | |
# Using regular install NOT editable install: see GH #3020 | |
pip install --upgrade --upgrade-strategy eager torch scikit-learn pytest | |
- name: Test with pytest | |
# Ensure we avoid adding current working directory to sys.path: | |
# - Use "pytest" over "python -m pytest" | |
# - Use "append" import mode rather than default "prepend" | |
run: > | |
pytest bug-121101.py |