diff --git a/.github/workflows/test-and-publish-release.yml b/.github/workflows/test-and-publish-release.yml index 24fde0e..b653798 100644 --- a/.github/workflows/test-and-publish-release.yml +++ b/.github/workflows/test-and-publish-release.yml @@ -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" @@ -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: diff --git a/.github/workflows/test-main.yml b/.github/workflows/test-main.yml index 4d1d5ce..7ffd36a 100644 --- a/.github/workflows/test-main.yml +++ b/.github/workflows/test-main.yml @@ -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" @@ -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 diff --git a/README.md b/README.md index c11474c..9008272 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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: