Use scikit-build and dispense with setup.py #238
Workflow file for this run
This file contains hidden or 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: Test nle PyPI package | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| release: | |
| types: [released] | |
| jobs: | |
| test_install: | |
| name: Test install | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12'] | |
| fail-fast: false | |
| steps: | |
| - name: Setup Python env using uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Create an empty venv | |
| run: "uv venv" | |
| - name: Install nle via pip | |
| run: "uv pip install nle" | |
| - name: Check nethack is installed | |
| run: | | |
| uv run python -c 'import nle; import gymnasium as gym; e = gym.make("NetHack-v0"); e.reset(); e.step(0)' | |