Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,12 @@ jobs:
fi

- name: Validate black version
# Fixed: Added space between --check and .
run: black --version

- name: Check Formatting (Black)
# Fixed: Added space between --check and .
run: black --check .

- name: Run Linter (Flake8)
# Fixed: Added space between flake8 and .
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

tests:
Expand Down Expand Up @@ -78,10 +75,20 @@ jobs:
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
# Ensure pytest-cov is installed
pip install pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
pip install -e .

- name: Run Tests
# MODIFIED: Added --cov flags to generate coverage data
run: |
python -m pytest --verbose
python -m pytest --verbose --cov=./ --cov-report=xml

- name: Upload coverage to Codecov
# NEW STEP: Uploads data to generate the badge
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![PyPI](https://img.shields.io/pypi/v/pyntm.svg)](https://pypi.python.org/pypi/pyNTM)
[![CI](https://github.com/tim-fiola/network_traffic_modeler_py3/actions/workflows/ci.yml/badge.svg)](https://github.com/tim-fiola/network_traffic_modeler_py3/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/tim-fiola/network_traffic_modeler_py3/badge.svg?branch=master)](https://coveralls.io/github/tim-fiola/network_traffic_modeler_py3?branch=master)
[![codecov](https://codecov.io/gh/tim-fiola/network_traffic_modeler_py3/graph/badge.svg?token=YOUR_TOKEN_HERE)](https://codecov.io/gh/tim-fiola/network_traffic_modeler_py3)
[![Documentation Status](https://readthedocs.org/projects/pyntm/badge/?version=latest)](https://pyntm.readthedocs.io/en/latest/?badge=latest)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open("requirements.txt", "r") as fs:
reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]

version = "3.5.1"
version = "4.0.1"

with open("README.md", "r") as fh:
long_description = fh.read()
Expand Down