Github Actions use uv #574
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: GeniusBridge | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: "ubuntu-latest" | |
timeout-minutes: 120 | |
env: | |
USING_COVERAGE: "3.12" | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: "Install Genius Bridge" | |
run: negmas genius-setup | |
- name: "Install Jupyter Kernel" | |
run: python -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: | | |
export NEGMAS_IGNORE_TEST_NOTEBOOKS=True | |
export NEGMAS_SLOW_TEST=True | |
export NEGMAS_BRIDGE_OPS | |
unset NEGMAS_BRIDGE_OPS | |
export NEGMAS_IGNORE_TEST_NOTEBOOKS=True | |
export NEGMAS_BRIDGE_OPS=True | |
python -W ignore -m pytest tests/genius || python -W ignore -m pytest --last-failed . |