Skip to content

docs: Add JOSS publication badge #341

docs: Add JOSS publication badge

docs: Add JOSS publication badge #341

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python tests (all optional dependencies)
on: ["push"]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
env:
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434
SDL_VIDEODRIVER: "dummy" # for PyGame render https://stackoverflow.com/questions/15933493/pygame-error-no-available-video-device
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up venv with Python ${{ matrix.python-version }}
run: |
uv venv --python ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --extra gym --extra gui --extra planning --extra htmlvis
- name: Setup java for ENHSP
uses: actions/setup-java@v2
with:
distribution: "microsoft"
java-version: "17"
- name: Test with pytest
run: |
uv run pytest