Skip to content

Commit

Permalink
Fix test groups, use julia-cache instead of cache, remove unused …
Browse files Browse the repository at this point in the history
…test files (#449)

* switch to setup-julia@v2, use julia-cache instead of cache

* typo

* use julia-actions/cache for documentation as well.

* use GROUP env variable

* remove junk

* show the group

* use newer checkout, remove dup runtest

* put cache earlier in the queue

* don't show GROUP

* split up GraphDynamics tests into 3 groups

* shift some tests to GraphDynamics2
  • Loading branch information
MasonProtter authored Oct 9, 2024
1 parent 9095bb1 commit 64396d5
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 602 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,22 @@ jobs:
group:
- Basics
- Advanced
- GraphDynamics
- GraphDynamics1
- GraphDynamics2
- GraphDynamics3
version:
- '1'
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: 4
GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
Expand Down
39 changes: 25 additions & 14 deletions test/GraphDynamicsTests/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
include(joinpath(@__DIR__(), "test_suite.jl"))

basic_smoketest()
neuron_and_neural_mass_comparison_tests()
basic_hh_network_tests()
stochastic_hh_network_tests()
ngei_test()
kuramato_test()
wta_tests()
dbs_circuit_components()
dbs_circuit()
discrete()
striatum_tests()
lif_exci_inh_tests()
decision_making_test()
ping_tests()
const GROUP = get(ENV, "GROUP", "All")
@show GROUP

if GROUP == "All" || GROUP == "GraphDynamics1"
basic_smoketest()
neuron_and_neural_mass_comparison_tests()
basic_hh_network_tests()
stochastic_hh_network_tests()
ngei_test()
end

if GROUP == "All" || GROUP == "GraphDynamics2"
kuramato_test()
wta_tests()
dbs_circuit_components()
dbs_circuit()
discrete()
striatum_tests()
end

if GROUP == "All" || GROUP == "GraphDynamics3"
lif_exci_inh_tests()
decision_making_test()
ping_tests()
end
69 changes: 0 additions & 69 deletions test/bayesian_fitting.jl

This file was deleted.

66 changes: 0 additions & 66 deletions test/fitting.jl

This file was deleted.

70 changes: 0 additions & 70 deletions test/graph_to_dataframe.jl

This file was deleted.

Loading

0 comments on commit 64396d5

Please sign in to comment.