Skip to content

Commit

Permalink
Make Pkg.test work (#12)
Browse files Browse the repository at this point in the history
* Make Pkg.test work

* Run Pkg.test on CI

* Distinguish Pkg.test and Run.test

* Fix test/Project.toml

* Require TestFunctionRunner 0.1.4

* Test with nightly using Pkg.test
  • Loading branch information
tkf authored Nov 25, 2021
1 parent 33551a7 commit 0221d79
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version: ['1.6', 'nightly']
julia-version:
- '1.6'
fail-fast: false
name: Test Julia ${{ matrix.julia-version }}
steps:
Expand All @@ -28,6 +29,6 @@ jobs:
- uses: codecov/codecov-action@v1
with:
file: ./lcov.info
flags: unittests
flags: Run.test
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/vanilla-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run test via Pkg.test()

on:
push:
branches:
- master
tags: '*'
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version:
- '~1.7.0-rc3'
- 'nightly'
fail-fast: false
name: Test Julia ${{ matrix.julia-version }}
steps:
- uses: actions/checkout@v2
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: ./lcov.info
flags: Pkg.test
name: codecov-umbrella
6 changes: 0 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,3 @@ Referenceables = "0.1"
SplittablesBase = "0.1"
Transducers = "0.4"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
11 changes: 11 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[deps]
Dagger = "d58978e5-989f-55fb-8d15-ea34adc7bf54"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
FLoops = "cc61a311-1640-44b5-9fba-1b764f453329"
Folds = "41a02a25-b8f0-4f67-bc48-60067656b558"
Referenceables = "42d2dcc6-99eb-4e98-b66c-637b7d73030e"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestFunctionRunner = "792026f5-ac9a-4a19-adcb-47b0ce2deb5d"

[compat]
TestFunctionRunner = "0.1.4"

0 comments on commit 0221d79

Please sign in to comment.