-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (42 loc) · 1.41 KB
/
SlowCI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
- 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 Jupyter Kernel"
run: uv run -m ipykernel install --user --name=negmas
- name: "Install Genius Bridge"
run: uv run negmas genius-setup
- uses: actions/setup-java@v4
with:
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "15"
- 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_SLOW_TEST=True
- name: "Run pytest for ${{ matrix.python-version }}"
run: "uv run pytest src/negmas tests || uv run pytest --last-failed src/negmas tests"