Test from PyPi #28
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 from PyPi" | |
| on: | |
| workflow_run: | |
| workflows: ["Build and upload to PyPI"] | |
| types: | |
| - completed | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 1 * *" | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest-large, macos-latest] | |
| python: ['3.10', '3.11', '3.12', '3.13'] | |
| 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 | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install textworld[dev] | |
| - name: Run tests | |
| run: | | |
| pytest -n 1 -sv tests/ textworld/ |