Skip to content

Test from PyPi

Test from PyPi #19

Workflow file for this run

name: "Test from PyPi"
on:
workflow_dispatch:
# Schedule a workflow to run at 00:00 (UTC) on the first of every month
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 pytest
pip install textworld[dev]
pip install --no-deps --pre textworld[dev]
- name: Run tests
run: |
pytest -n 16 -sv tests/ textworld/