mirror of
https://github.com/julia-actions/julia-processcoverage.git
synced 2026-02-15 04:26:57 +08:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea5e0fc691 | ||
|
|
ecc9c01653 | ||
|
|
51178d2d1c | ||
|
|
32c9a92ffc | ||
|
|
de15ca79be | ||
|
|
0d1581b1d9 | ||
|
|
3c74a1a7cd |
12
.github/dependabot.yml
vendored
Normal file
12
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
# Keep dependencies for GitHub Actions up-to-date
|
||||
- package-ecosystem: 'github-actions'
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: 'daily'
|
||||
4
.github/workflows/backup.yml
vendored
4
.github/workflows/backup.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Configure cache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
${{ env.GITHUB_WORKSPACE }}
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
key: ${{ runner.os }}
|
||||
|
||||
- name: Install the correct Python version
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
|
||||
13
README.md
13
README.md
@@ -1,6 +1,4 @@
|
||||
<p align="center">
|
||||
<a href="https://github.com/actions/typescript-action/actions"><img alt="typescript-action status" src="https://github.com/actions/typescript-action/workflows/build-test/badge.svg"></a>
|
||||
</p>
|
||||
# `julia-actions/julia-processcoverage` Action
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -9,9 +7,10 @@ See [PkgTemplates.jl](https://github.com/invenia/PkgTemplates.jl/blob/master/tes
|
||||
```yaml
|
||||
|
||||
- uses: julia-actions/julia-processcoverage@v1
|
||||
- uses: codecov/codecov-action@v2
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
files: lcov.info
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
```
|
||||
|
||||
One can also specify the directory or directories (comma separated) to use via the `directories` input (which defaults to `src,ext`). E.g.
|
||||
@@ -20,17 +19,19 @@ One can also specify the directory or directories (comma separated) to use via t
|
||||
- uses: julia-actions/julia-processcoverage@v1
|
||||
with:
|
||||
directories: src,ext,examples
|
||||
- uses: codecov/codecov-action@v2
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
files: lcov.info
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
```
|
||||
instructs the action to look for coverage information in `src`, `ext`, and an `examples` folder. Likewise, use
|
||||
```yaml
|
||||
- uses: julia-actions/julia-processcoverage@v1
|
||||
with:
|
||||
directories: path/to/subdir/package/src
|
||||
- uses: codecov/codecov-action@v2
|
||||
- uses: codecov/codecov-action@v5
|
||||
with:
|
||||
files: lcov.info
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
```
|
||||
to get coverage information from a package in a subdirectory of the repo.
|
||||
|
||||
2
main.jl
2
main.jl
@@ -7,7 +7,7 @@ Pkg.add(PackageSpec(name="CoverageTools"))
|
||||
using CoverageTools
|
||||
|
||||
directories = get(ENV, "INPUT_DIRECTORIES", "src,ext")
|
||||
dirs = filter!(!isempty, split(directories, ","))
|
||||
dirs = filter!(!isempty, strip.(split(directories, ",")))
|
||||
for dir in dirs
|
||||
if dir == "ext"
|
||||
continue # Silently skip this directory
|
||||
|
||||
Reference in New Issue
Block a user