Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve committed Jul 17, 2024
1 parent 38b91eb commit 9fef213
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
name: CI

on:
push:
branches:
- main
tags: ['*']
tags:
- 'v*'
pull_request:
workflow_dispatch:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -23,7 +27,7 @@ jobs:
fail-fast: false
matrix:
julia-version:
- '1.6'
- '1.8'
- '1'
os:
- ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ResearchSoftwareMetadata"
uuid = "58378933-4625-47fa-851e-05ee27d397bd"
authors = ["Richard Reeve <[email protected]>"]
version = "2.0.0"
version = "0.1.0"

[license]
SPDX = "BSD-2-Clause"
Expand Down Expand Up @@ -36,7 +36,8 @@ orcid = "0000-0003-2589-8091"
[extras]
Git = "d7ba0133-e1db-5d97-8f8c-041e4b3a1eb2"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Git", "Logging"]
test = ["Test", "Git", "Logging", "TOML"]
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"Windows",
"macOS"
],
"version": "v2.0.0",
"version": "v0.1.0",
"dateModified": "2024-07-17",
"datePublished": "2024-07-17",
"downloadUrl": "https://github.com/richardreeve/ResearchSoftwareMetadata.jl/archive/refs/tags/v2.0.0.tar.gz",
"downloadUrl": "https://github.com/richardreeve/ResearchSoftwareMetadata.jl/archive/refs/tags/v0.1.0.tar.gz",
"license": "https://spdx.org/licenses/BSD-2-Clause",
"author": [
{
Expand Down
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Git
using Logging
using ResearchSoftwareMetadata
using TOML
using Test

function is_repo_clean(repo_path::String)
Expand All @@ -17,11 +18,17 @@ end

@testset "ResearchSoftwareMetadata.jl" begin
cd("..")
project = ResearchSoftwareMetadata.read_project()
@test isnothing(ResearchSoftwareMetadata.crosswalk())
@test_nowarn global_logger(SimpleLogger(stderr, Logging.Warn))
@test_nowarn ResearchSoftwareMetadata.crosswalk()
@test is_repo_clean(".")
@test_nowarn ResearchSoftwareMetadata.increase_patch()
@test_nowarn ResearchSoftwareMetadata.increase_minor()
@test_nowarn ResearchSoftwareMetadata.increase_major()
open("Project.toml", "w") do io
TOML.print(io, project)
end
@test_nowarn ResearchSoftwareMetadata.crosswalk(update = true)
@test is_repo_clean(".")
end

0 comments on commit 9fef213

Please sign in to comment.