Skip to content

Commit

Permalink
Include codecov in CI (#854)
Browse files Browse the repository at this point in the history
* Include codecov in CI

* Update ci.yml

* Update ci.yml

* Tweak codecov

* [test] skip changed

* Update ci.yml

* update codecov

* trigger CI

* updates

---------

Co-authored-by: Jeremiah <[email protected]>
  • Loading branch information
HenriDeh and jeremiahpslewis authored Mar 30, 2023
1 parent 8392505 commit db5d23b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
comment: false
comment: # this is a top-level key
layout: "reach, diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
matrix:
version:
- '1.8'
- '1'
os:
- ubuntu-latest
arch:
Expand Down Expand Up @@ -65,7 +64,9 @@ jobs:
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.test("ReinforcementLearningBase")'
Pkg.test("ReinforcementLearningBase", coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1

- uses: marceloprado/has-changed-path@v1
id: RLCore-changed
Expand All @@ -80,7 +81,9 @@ jobs:
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.test("ReinforcementLearningCore")'
Pkg.test("ReinforcementLearningCore", coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1

- uses: marceloprado/has-changed-path@v1
id: RLZoo-changed
Expand All @@ -96,7 +99,9 @@ jobs:
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.develop(path="src/ReinforcementLearningZoo")
Pkg.test("ReinforcementLearningZoo")'
Pkg.test("ReinforcementLearningZoo", coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1

- uses: marceloprado/has-changed-path@v1
id: RLEnvironments-changed
Expand All @@ -111,8 +116,10 @@ jobs:
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.test("ReinforcementLearningEnvironments")'
Pkg.test("ReinforcementLearningEnvironments", coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1

- uses: marceloprado/has-changed-path@v1
id: RLDatasets-changed
with:
Expand All @@ -124,7 +131,9 @@ jobs:
# julia --color=yes -e '
# using Pkg;
# Pkg.develop(path="src/ReinforcementLearningDatasets")
# Pkg.test("ReinforcementLearningDatasets")'
# Pkg.test("ReinforcementLearningDatasets", coverage=true)'
# - uses: julia-actions/julia-processcoverage@v1
# - uses: codecov/codecov-action@v1

- uses: marceloprado/has-changed-path@v1
id: RLExperiments-changed
Expand All @@ -142,8 +151,10 @@ jobs:
Pkg.develop(path="src/ReinforcementLearningZoo")
Pkg.develop(path="src/ReinforcementLearningExperiments")
Pkg.build("ReinforcementLearningExperiments")
Pkg.test("ReinforcementLearningExperiments")'
Pkg.test("ReinforcementLearningExperiments", coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1

docs:
name: Documentation
runs-on: ubuntu-latest
Expand Down

0 comments on commit db5d23b

Please sign in to comment.