Skip to content

GithubActions using uv (second attempt) #342

GithubActions using uv (second attempt)

GithubActions using uv (second attempt) #342

Workflow file for this run

name: SlowCI
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"
timeout-minutes: 360
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- uses: actions/setup-java@v4
with:
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "15"
- 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: "Setting up environment"
run: |
export NEGMAS_IGNORE_TEST_NOTEBOOKS=True
export NEGMAS_FASTRUN=True
- name: "Run pytest for ${{ matrix.python-version }}"
run: "python -W ignore -m pytest negmas tests/optional || python -W ignore -m pytest --last-failed ."