Skip to content

Commit

Permalink
Merge pull request #18 from EcoJulia/rr/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve authored Sep 7, 2021
2 parents e084bc2 + 904f3a5 commit 0912f03
Show file tree
Hide file tree
Showing 14 changed files with 208 additions and 154 deletions.
1 change: 0 additions & 1 deletion .codecov.yml

This file was deleted.

35 changes: 28 additions & 7 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
name: CompatHelper

on:
push:
branches:
- main
schedule:
- cron: '00 00 * * *'
- cron: '0 4 * * *' # Daily at 4 AM

jobs:
CompatHelper:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version:
- '1'
arch:
- x86
os:
- ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: 1.3
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
version: ${{ matrix.julia-version }}
arch: ${{ matrix.arch }}
- name: "Install CompatHelper"
run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "2"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main()
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
8 changes: 6 additions & 2 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
issue_comment:
types:
- created
workflow_dispatch:

jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: JuliaNightly
# Nightly Scheduled Julia Nightly Run
on:
push:
branches:
- main
tags:
- 'v*'
schedule:
- cron: '0 2 * * 0' # Weekly at 2 AM UTC Sunday

jobs:
test:
name: Julia Nightly - Ubuntu - x64
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up julia
uses: julia-actions/setup-julia@v1
with:
version: nightly
arch: x64
- name: Build package
uses: julia-actions/julia-buildpkg@latest
- name: Run tests
uses: julia-actions/julia-runtest@latest
50 changes: 50 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:

jobs:
EcoBase-tests:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
julia-version:
- '1'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
R-version:
- 'release'
arch:
- x64
experimental:
- false
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.arch }}
- name: Build package
uses: julia-actions/julia-buildpkg@master
- name: Running
uses: julia-actions/julia-runtest@master
- name: Process coverage
uses: julia-actions/julia-processcoverage@v1
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info
- name: Codecov
uses: codecov/codecov-action@v1
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "EcoBase.jl - A package implementing an abstract interface to data types used in ecological analyses",
"description": "This package implements an abstract interface to data types used in ecological analyses in Julia",
"upload_type": "software",
"creators": [
{
"affiliation": "GLOBE Institute, University of Copenhagen",
"name": "Borregaard, Michael Krabbe",
"orcid": "0000-0002-8146-8435"
},
{
"affiliation": "University of Glasgow",
"name": "Reeve, Richard",
"orcid": "0000-0003-2589-8091"
}
],
"access_right": "open",
"license": "mit-license",
"related_identifiers": [
{
"scheme": "url",
"identifier": "https://github.com/EcoJulia/EcoBase.jl",
"relation": "isIdenticalTo"
}
],
"keywords": [
"julia",
"ecology"
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018-2021: Michael K. Borregaard, Richard Reeve and EcoJulia

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 0 additions & 22 deletions LICENSE.md

This file was deleted.

17 changes: 17 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# NEWS

- v0.1.4
- Improve printing
- Update GitHub workflows
- Add Zenodo metadata
- Fix testing and coverage checking to use GitHub workflows
- v0.1.3
- CompatHelper fixes
- v0.1.2
- CompatHelper fixes
- Add TagBot
- v0.1.1
- Bugfix for asindices()
- v0.1.0
- Add CompatHelper
- Move to Project.toml
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ uuid = "a58aae7d-b440-5a11-b283-399458f99aac"
keywords = ["macroecology", "ecology", "biology", "geography"]
license = "MIT"
desc = "Base package with abstract types for ecology"
authors = ["mkborregaard <mkborregaard@sund.ku.dk", "RichardReeve <Richard.Reeve@glasgow.ac.uk>"]
version = "0.1.3"
authors = ["mkborregaard <mkborregaard@sund.ku.dk", "Richard Reeve <Richard.Reeve@glasgow.ac.uk>", "Kevin Bonham <kbonham@wellesley.edu>"]
version = "0.1.4"

[deps]
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
Expand Down
47 changes: 0 additions & 47 deletions appveyor.yml

This file was deleted.

Loading

2 comments on commit 0912f03

@kescobo
Copy link
Member

@kescobo kescobo commented on 0912f03 Sep 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/44562

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.4 -m "<description of version>" 0912f03df71c93b92df4bee5604f326899745aa6
git push origin v0.1.4

Please sign in to comment.