10 Commits

Author SHA1 Message Date
dependabot[bot]
69108d0d8e Bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 21:07:30 +00:00
dependabot[bot]
51178d2d1c Bump actions/setup-python from 4 to 5 (#24)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-06 16:57:30 -05:00
Arno Strouwen
32c9a92ffc strip whitespace (#18)
Co-authored-by: Viral B. Shah <ViralBShah@users.noreply.github.com>
2023-11-21 22:24:08 -05:00
dependabot[bot]
de15ca79be Bump actions/cache from 2 to 3 (#22)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 22:23:34 -05:00
dependabot[bot]
0d1581b1d9 Bump actions/setup-python from 2 to 4 (#23)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 22:23:15 -05:00
Ian Butterworth
3c74a1a7cd Create dependabot.yml (#21) 2023-11-21 22:21:24 -05:00
Oscar Dowson
03114f09f1 Fix when input directories are not found (#20)
* Fix when input directories are not found

* Update main.jl

Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>

Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
2022-12-21 20:01:07 -05:00
Fredrik Ekre
605cc6b85a RFC: change default directory to src,ext. (#19) 2022-12-21 23:56:53 +01:00
Curtis Vogt
6e018a9646 Use codecov-action@v2 in examples (#11) 2021-10-26 16:35:58 +02:00
Jim Garrison
a89a6dbd45 Update README link to PkgTemplates.jl (#10)
The target file was renamed in https://github.com/invenia/PkgTemplates.jl/pull/252
2021-10-01 10:08:13 +02:00
5 changed files with 33 additions and 17 deletions

12
.github/dependabot.yml vendored Normal file
View 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'

View File

@@ -12,7 +12,7 @@ jobs:
steps: steps:
- name: Configure cache - name: Configure cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{ env.GITHUB_WORKSPACE }} ${{ env.GITHUB_WORKSPACE }}
@@ -20,7 +20,7 @@ jobs:
key: ${{ runner.os }} key: ${{ runner.os }}
- name: Install the correct Python version - name: Install the correct Python version
uses: actions/setup-python@v2 uses: actions/setup-python@v6
with: with:
python-version: '3.x' python-version: '3.x'

View File

@@ -4,33 +4,33 @@
## Usage ## Usage
See [PkgTemplates.jl](https://github.com/invenia/PkgTemplates.jl/blob/master/test/fixtures/AllPlugins/.github/workflows/ci.yml) for a complete example. See [PkgTemplates.jl](https://github.com/invenia/PkgTemplates.jl/blob/master/test/fixtures/AllPlugins/.github/workflows/CI.yml) for a complete example.
```yaml ```yaml
- uses: julia-actions/julia-processcoverage@v1 - uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v2
with: with:
file: lcov.info files: lcov.info
``` ```
One can also specify the directory or directories to use via the `directories` input (which defaults to `src`). E.g. One can also specify the directory or directories (comma separated) to use via the `directories` input (which defaults to `src,ext`). E.g.
```yaml ```yaml
- uses: julia-actions/julia-processcoverage@v1 - uses: julia-actions/julia-processcoverage@v1
with: with:
directories: src,examples directories: src,ext,examples
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v2
with: with:
file: lcov.info files: lcov.info
``` ```
instructs the action to look for coverage information in both `src` and an `examples` folder. Likewise, use instructs the action to look for coverage information in `src`, `ext`, and an `examples` folder. Likewise, use
```yaml ```yaml
- uses: julia-actions/julia-processcoverage@v1 - uses: julia-actions/julia-processcoverage@v1
with: with:
directories: path/to/subdir/package/src directories: path/to/subdir/package/src
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v2
with: with:
file: lcov.info files: lcov.info
``` ```
to get coverage information from a package in a subdirectory of the repo. to get coverage information from a package in a subdirectory of the repo.

View File

@@ -10,7 +10,7 @@ inputs:
directories: directories:
description: 'Comma-separated list of directories to look for coverage information (e.g. `src,examples`)' description: 'Comma-separated list of directories to look for coverage information (e.g. `src,examples`)'
required: false required: false
default: 'src' default: 'src,ext'
runs: runs:
using: 'composite' using: 'composite'

12
main.jl
View File

@@ -6,11 +6,15 @@ Pkg.add(PackageSpec(name="CoverageTools"))
using CoverageTools using CoverageTools
directories = get(ENV, "INPUT_DIRECTORIES", "src") directories = get(ENV, "INPUT_DIRECTORIES", "src,ext")
dirs = filter!(!isempty, split(directories, ",")) dirs = filter!(!isempty, strip.(split(directories, ",")))
for dir in dirs for dir in dirs
isdir(dir) || error("directory \"$dir\" not found!") if dir == "ext"
continue # Silently skip this directory
elseif !isdir(dir)
error("directory \"$dir\" not found!")
end end
end
filter!(isdir, dirs)
pfs = mapreduce(process_folder, vcat, dirs) pfs = mapreduce(process_folder, vcat, dirs)
LCOV.writefile("lcov.info", pfs) LCOV.writefile("lcov.info", pfs)