Requiring final scores when complete_only #795
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: CI | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
tests: | |
name: "Python ${{ matrix.python-version }}" | |
runs-on: "ubuntu-latest" | |
timeout-minutes: 180 | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "Install dependencies" | |
run: | | |
set -xe | |
ulimit -n 50000 | |
python -VV | |
python -m site | |
python -m pip install --upgrade pip setuptools wheel pytest | |
python -m pip install --upgrade virtualenv | |
python -m pip install -r requirements.txt | |
python -m pip install -r requirements-dev.txt | |
python -m ipykernel install --user --name=negmas | |
python -m pip install -e . | |
- 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/core || python -W ignore -m pytest --last-failed ." | |
package: | |
name: "Build & verify package" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.12" | |
- name: "Install pep517 and twine" | |
run: "python -m pip install --upgrade pip setuptools wheel pytest twine" | |
- name: "Build package" | |
run: "python setup.py sdist bdist_wheel" | |
- name: "List result" | |
run: "ls -l dist" | |
- name: "Check long_description" | |
run: "python -m twine check dist/*" | |
install-dev: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
name: "Verify dev env" | |
runs-on: "${{ matrix.os }}" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.12" | |
- name: "Install in dev mode" | |
run: | | |
python -m pip install -r requirements.txt | |
python -m pip install -r requirements-dev.txt | |
python -m pip install -r docs/requirements.txt | |
python -m ipykernel install --user --name=negmas | |
python -m pip install -e . | |
- name: "Import package" | |
run: "python -c 'import negmas; print(negmas.__version__)'" |