-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (49 loc) · 1.45 KB
/
test_github.yml
File metadata and controls
49 lines (49 loc) · 1.45 KB
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
43
44
45
46
47
48
49
name: CI (NegMAS Github)
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.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
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev]"
python -m ipykernel install --user --name=scml
yes | python -m pip uninstall negmas
python -m pip install git+https://github.com/yasserfarouk/negmas.git
- name: "Run pytest for ${{ matrix.python-version }}"
run: "python -m pytest tests"
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 build tools"
run: "python -m pip install --upgrade pip build twine"
- name: "Build package"
run: "python -m build"
- name: "List result"
run: "ls -l dist"
- name: "Check long_description"
run: "python -m twine check dist/*"