Merge pull request #64 from yasserfarouk/touv #498
This file contains 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: JupyterNotebooks | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: "ubuntu-latest" | |
timeout-minutes: 240 | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12", "3.13"] | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
- name: Set up Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install the project | |
run: | | |
uv sync --all-extras --dev | |
uv pip install -e "." | |
- name: "Activate the project" | |
run: source .venv/bin/activate | |
- name: "Install Genius Bridge" | |
run: uv run negmas genius-setup | |
- name: "Install Jupyter Kernel" | |
run: uv run -m ipykernel install --user --name=negmas | |
- name: "running genius bridge" | |
run: "java -jar $HOME/negmas/files/geniusbridge.jar --silent --no-logs &" | |
- name: "Run pytest for ${{ matrix.python-version }}" | |
run: "uv run pytest tests/optional/test_jupyter.py || uv run pytest --last-failed tests/optional/test_jupyter.py" |