Skip to content

Commit ae06ffa

Browse files
authored
Merge pull request #241 from pysat/maint/coveralls
2 parents 39f2125 + 47f7c3c commit ae06ffa

File tree

4 files changed

+24
-46
lines changed

4 files changed

+24
-46
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -78,42 +78,20 @@ jobs:
7878
- name: Test with pytest
7979
run: pytest
8080

81-
- name: Coveralls Parallel (Ubuntu)
82-
if: startsWith(matrix.os, 'ubuntu')
83-
env:
84-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
85-
COVERALLS_PARALLEL: true
86-
run: |
87-
curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz
88-
./coveralls report --parallel --repo-token=${{ secrets.COVERALLS_REPO_TOKEN }} --build-number ${{ github.run_number }}
89-
90-
- name: Coveralls Parallel (Windows)
91-
if: startsWith(matrix.os, 'windows')
92-
env:
93-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
94-
COVERALLS_PARALLEL: true
95-
run: |
96-
curl -L https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.exe -o coveralls.exe
97-
./coveralls.exe report --parallel --repo-token=${{ secrets.COVERALLS_REPO_TOKEN }} --build-number ${{ github.run_number }}
81+
- name: Coveralls Parallel
82+
uses: coverallsapp/github-action@v2
83+
with:
84+
flag-name: run-${{ join(matrix.*, '-') }}
85+
parallel: true
9886

99-
- name: Publish results to coveralls (MacOS)
100-
if: startsWith(matrix.os, 'macos')
101-
env:
102-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
103-
COVERALLS_PARALLEL: true
104-
run: |
105-
coveralls --rcfile=pyproject.toml --service=github
106-
10787
finish:
10888
name: Finish Coverage Analysis
10989
needs: build
110-
if: always()
111-
runs-on: "ubuntu-latest"
90+
if: ${{ always() }}
91+
runs-on: ubuntu-latest
11292
steps:
113-
- name: Coveralls Finish
114-
env:
115-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
116-
COVERALLS_PARALLEL: true
117-
run: |
118-
curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz
119-
./coveralls done --build-number ${{ github.run_number }}
93+
- name: Coveralls Finished
94+
uses: coverallsapp/github-action@v2
95+
with:
96+
parallel-finished: true
97+

.github/workflows/pysat_rc.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ jobs:
4242
- name: Test with pytest
4343
run: pytest
4444

45-
- name: Publish results to coveralls
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
COVERALLS_PARALLEL: true
49-
run: coveralls --rcfile=pyproject.toml --service=github
45+
- name: Coveralls Parallel
46+
uses: coverallsapp/github-action@v2
47+
with:
48+
flag-name: run-${{ join(matrix.*, '-') }}
49+
parallel: true
5050

5151
finish:
5252
name: Finish Coverage Analysis
5353
needs: build
54+
if: ${{ always() }}
5455
runs-on: ubuntu-latest
5556
steps:
5657
- name: Coveralls Finished
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
run: |
60-
pip install --upgrade coveralls
61-
coveralls --service=github --finish
58+
uses: coverallsapp/github-action@v2
59+
with:
60+
parallel-finished: true
61+

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5-
## [0.0.6] - 2024-07-31
5+
## [0.0.6] - 2024-08-26
66
* New Instruments
77
* DE2 VEFIMAGB - electric and magnetic field on the same cadence
88
* MAVEN MAG
@@ -44,6 +44,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
4444
* Update NEP29 standards for Jun 2024
4545
* Updated standards for pandas, numpy, and pysat
4646
* Updated versions in GitHub Actions
47+
* Implement coveralls app in GitHub Actions
4748

4849
## [0.0.5] - 2023-06-27
4950
* New Instruments

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ dependencies = [
5353
[project.optional-dependencies]
5454
pysatcdf = ["pysatCDF"]
5555
test = [
56-
"coveralls",
5756
"flake8",
5857
"flake8-docstrings",
5958
"hacking >= 1.0",

0 commit comments

Comments
 (0)