From 6b0734c03bc246d5f342cd7fc446b5886a1b5ea4 Mon Sep 17 00:00:00 2001 From: Lee Date: Tue, 7 Jan 2025 11:31:47 +1100 Subject: [PATCH] code coverage upload --- .github/workflows/pythontest.yml | 16 +++++++++++++--- README.rst | 18 +++++++++--------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pythontest.yml b/.github/workflows/pythontest.yml index 870c1b5..0022e19 100644 --- a/.github/workflows/pythontest.yml +++ b/.github/workflows/pythontest.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.9] + python-version: [3.12] steps: - name: Checkout code uses: actions/checkout@v2 @@ -29,7 +29,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.12'] platform: [ubuntu-latest, macos-latest] steps: - uses: actions/checkout@v3 @@ -44,4 +44,14 @@ jobs: - name: Test with tox run: tox env: - PLATFORM: ${{ matrix.platform }} \ No newline at end of file + PLATFORM: ${{ matrix.platform }} + - name: Upload coverage.xml + if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} + uses: actions/upload-artifact@v3 + with: + name: tox-gh-actions-coverage + path: coverage.xml + if-no-files-found: error + - name: Upload coverage.xml to codecov + if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} + uses: codecov/codecov-action@v2 \ No newline at end of file diff --git a/README.rst b/README.rst index 284fc4e..d28d4c0 100644 --- a/README.rst +++ b/README.rst @@ -16,17 +16,17 @@ the Kamilaroi/Gamilaraay language Australians have studied the night skies above Australia for at least 50000 years. To learn more about Aboriginal astronomy please visit http://www.aboriginalastronomy.com.au/. -#.. image:: https://travis-ci.org/AstroHuntsman/gunagala.svg -# :target: https://travis-ci.org/AstroHuntsman/gunagala -# :alt: Travis Status +.. image:: https://github.com/AstroHuntsman/gunagala/actions/workflows/pythontest.yml/badge.svg + :target: https://github.com/AstroHuntsman/gunagala/actions + :alt: Python package tests -#.. image:: https://coveralls.io/repos/github/AstroHuntsman/gunagala/badge.svg?branch=master -# :target: https://coveralls.io/github/AstroHuntsman/gunagala?branch=master -# :alt: Coverage status +.. image:: https://coveralls.io/repos/github/AstroHuntsman/gunagala/badge.svg?branch=develop + :target: https://coveralls.io/github/AstroHuntsman/gunagala?branch=develop + :alt: Coverage status -.. image:: https://readthedocs.org/projects/gunagala/badge/?version=develop - :target: http://gunagala.readthedocs.io/en/develop/?badge=develop - :alt: Documentation Status +#.. image:: https://readthedocs.org/projects/gunagala/badge/?version=develop +# :target: http://gunagala.readthedocs.io/en/develop/?badge=develop +# :alt: Documentation Status Development