Skip to content

Commit

Permalink
prepare for package registration (#27)
Browse files Browse the repository at this point in the history
* add missing compat and declare Julia 1.0 compat

ImageFiltering is reexported by Images, so I remove it from the deps to manage compat easier.

* set up github actions CI

* move test deps back to Project.toml
  • Loading branch information
johnnychen94 authored Oct 1, 2020
1 parent 502f315 commit 244cb8a
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 92 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'

jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
12 changes: 12 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
jobs:
TagBot:
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.TAGBOT }}
47 changes: 47 additions & 0 deletions .github/workflows/UnitTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Unit test

on:
create:
tags:
push:
branches:
- master
pull_request:
schedule:
- cron: '20 00 1 * *'

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ['1.0', '1', 'nightly']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/[email protected]
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}

- name: Cache artifacts
uses: actions/cache@v1
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 }}-
- name: "Unit Test"
uses: julia-actions/julia-runtest@master

- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

21 changes: 15 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,26 @@ version = "0.1.0"
[deps]
AxisAlgorithms = "13072b0f-2c55-5437-9ae7-d433b7a33950"
CoordinateTransformations = "150eb455-5306-5404-9cee-2592286d6298"
ImageFiltering = "6a3955dd-da59-5b1f-98d4-e7296123deb5"
Images = "916415d5-f1e6-5110-898d-aaa5f9f070e0"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compats]
AxisAlgorithms = ">= 0.2.0"
Images = ">= 0.13.0"
Interpolations = ">= 0.7.3"
StaticArrays = ">= 0.7.0"
julia = "1.3"
AxisAlgorithms = "1"
CoordinateTransformations = "0.5, 0.6"
Images = "0.18, 0.19, 0.20, 0.21, 0.22"
Interpolations = "0.10, 0.11, 0.12"
StaticArrays = "0.10, 0.11, 0.12"
julia = "1.0"

[extras]
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestImages = "5e47fb64-e119-507b-a336-dd2b206d9990"

[targets]
test = ["ImageMagick", "OffsetArrays", "Random", "Test", "TestImages"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ImageTracking

[![][action-img]][action-url]
[![][pkgeval-img]][pkgeval-url]
[![][codecov-img]][codecov-url]

Julia package for optical flow and object tracking algorithms.

The package currently implements optical flow estimation using the following methods:
Expand Down Expand Up @@ -213,4 +217,11 @@ idx2 = annotate!(guidict, AnnotationLines(lines, linewidth=2.0, color=RGB(1,0,0)
</div>


<!-- URLS -->

[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/I/ImageTracking.svg
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
[action-img]: https://github.com/JuliaImages/ImageTracking.jl/workflows/Unit%20test/badge.svg
[action-url]: https://github.com/JuliaImages/ImageTracking.jl/actions
[codecov-img]: https://codecov.io/github/JuliaImages/ImageTracking.jl/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/JuliaImages/ImageTracking.jl?branch=master
38 changes: 0 additions & 38 deletions appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion src/ImageTracking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ __precompile__()
module ImageTracking

using Images
using ImageFiltering
using Interpolations
using StaticArrays
using LinearAlgebra
Expand Down
10 changes: 0 additions & 10 deletions test/Project.toml

This file was deleted.

2 comments on commit 244cb8a

@johnnychen94
Copy link
Member Author

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 updated: JuliaRegistries/General/22231

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.0 -m "<description of version>" 244cb8a6da2158646c6cc538a61df0d764685453
git push origin v0.1.0

Please sign in to comment.