Drop glk #6
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: "Run tests and coverage" | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, macos-latest-large] | |
| python: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use Python ${{ matrix.python }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install dependencies (Linux) | |
| run: sudo apt update && sudo apt install -y --no-install-recommends graphviz | |
| if: startsWith(matrix.os, 'ubuntu') | |
| - name: Install dependencies (MacOS) | |
| run: brew install graphviz | |
| if: startsWith(matrix.os, 'macos') | |
| - name: Install TextWorld from source | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[dev] | |
| - name: Run tests | |
| run: | | |
| pytest -n 16 --cov=textworld --cov-report=term-missing --cov-fail-under=85 tests/ textworld/ |