Skip to content

Commit 788737a

Browse files
committed
updating git workflow
1 parent 5cb7c1c commit 788737a

3 files changed

Lines changed: 21 additions & 24 deletions

File tree

.github/workflows/python-test.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@ jobs:
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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Andrey
3+
Copyright (c) 2021-2025 Andrey Golovanov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=68", "wheel"]
2+
requires = ["setuptools>=77", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -9,6 +9,7 @@ description = "A discrete event simulator toolkit adapted for network simulation
99
readme = "README.md"
1010
authors = [{ name = "Andrey Golovanov" }]
1111
license = "MIT"
12+
license-files = ["LICENSE"]
1213
requires-python = ">=3.9"
1314

1415
classifiers = [
@@ -31,13 +32,11 @@ dependencies = [
3132
dev = [
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]
3942
addopts = "--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"]

0 commit comments

Comments
 (0)