File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 strategy :
1010 matrix :
11- python-version : ["3.8 ", "3.9 ", "3.10 "]
11+ python-version : ["3.9 ", "3.10 ", "3.11", "3.12 "]
1212
1313 steps :
14- - uses : actions/checkout@v2
15- - name : Set up Python ${{ matrix.python-version }}
16- uses : actions/setup-python@v2
17- with :
18- python-version : ${{ matrix.python-version }}
19- - name : Install dependencies
20- run : |
21- python -m pip install --upgrade pip
22- python -m pip install pytest pytest-cov pytest-benchmark pytest-mock
23- if [ -f requirements.txt ];
24- then
25- pip install -r requirements.txt;
26- fi
27- - name : Test with pytest and check test coverage
28- run : |
29- pytest --cov=netsim --cov-fail-under=85
14+ - uses : actions/checkout@v4 # latest stable
15+ - name : Set up Python ${{ matrix.python-version }}
16+ uses : actions/setup-python@v5
17+ with :
18+ python-version : ${{ matrix.python-version }}
19+
20+ - name : Install project (dev extras)
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install -e ".[dev]"
24+
25+ - name : Run tests with coverage
26+ run : |
27+ pytest --cov=ngraph --cov-fail-under=85
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2021 Andrey
3+ Copyright (c) 2021-2025 Andrey Golovanov
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" setuptools>=68 " , " wheel" ]
2+ requires = [" setuptools>=77 " , " wheel" ]
33build-backend = " setuptools.build_meta"
44
55[project ]
@@ -9,6 +9,7 @@ description = "A discrete event simulator toolkit adapted for network simulation
99readme = " README.md"
1010authors = [{ name = " Andrey Golovanov" }]
1111license = " MIT"
12+ license-files = [" LICENSE" ]
1213requires-python = " >=3.9"
1314
1415classifiers = [
@@ -31,13 +32,11 @@ dependencies = [
3132dev = [
3233 " pytest>=8" ,
3334 " pytest-cov" ,
35+ " pytest-benchmark" ,
36+ " pytest-mock" ,
3437 " black" ,
35- " ruff " ,
38+ " isort " ,
3639]
3740
3841[tool .pytest .ini_options ]
3942addopts = " --cov=netsim --cov-fail-under=85 --cov-report term-missing"
40-
41- # Ensure the licence file is included in the sdist and wheel
42- [tool .setuptools ]
43- license-files = [" LICENSE" ]
You can’t perform that action at this time.
0 commit comments