Skip to content

Commit

Permalink
added codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
harisankar95 committed Nov 22, 2023
1 parent eba9089 commit 3becf98
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test-and-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.8"

Expand All @@ -32,7 +32,16 @@ jobs:
run: coverage run --source pathfinding3d -m pytest

- name: Show basic test coverage report
run: coverage report
run: |
coverage report -m
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests

- name: Publish 📦 to PyPI
env:
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.8"

Expand All @@ -32,4 +32,13 @@ jobs:
run: coverage run --source pathfinding3d -m pytest

- name: Show basic test coverage report
run: coverage report
run: |
coverage report -m
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# python-pathfinding-3D

![MIT License](https://img.shields.io/github/license/harisankar95/python-pathfinding-3d)
![PyPI](https://img.shields.io/pypi/v/pathfinding3d)
[![Pipeline](https://github.com/harisankar95/python-pathfinding-3D/actions/workflows/test-main.yml/badge.svg?branch=main)](https://github.com/harisankar95/python-pathfinding-3D/actions/workflows/test-main.yml)
[![codecov](https://codecov.io/gh/harisankar95/python-pathfinding-3D/branch/main/graph/badge.svg?token=ZQZQZQZQZQ)](https://codecov.io/gh/harisankar95/python-pathfinding-3D)
[![codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Pathfinding algorithms for python3 froked from [python-pathfinding](https://github.com/brean/python-pathfinding) by [@brean](https://github.com/brean).

Currently there are 7 path-finders bundled in this library, namely:
Expand All @@ -14,9 +20,6 @@ Currently there are 7 path-finders bundled in this library, namely:

Dijkstra and A* take the weight of the fields on the map into account.

![MIT License](https://img.shields.io/github/license/harisankar95/python-pathfinding-3d)
![PyPI](https://img.shields.io/pypi/v/pathfinding3d)

## Installation

This library is provided by pypi, so you can just install the current stable version using pip:
Expand Down

0 comments on commit 3becf98

Please sign in to comment.