From c66be3519aed7e40639524df34337b58efcd5fe1 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 30 Nov 2020 16:59:12 +0100 Subject: [PATCH 1/2] Add empty package --- .github/workflows/CompatHelper.yml | 16 ++++++++ .github/workflows/TagBot.yml | 15 +++++++ .github/workflows/ci.yml | 63 ++++++++++++++++++++++++++++++ .gitignore | 5 +++ Project.toml | 7 ++++ README.md | 6 ++- src/AdvancedPS.jl | 5 +++ test/Project.toml | 5 +++ test/runtests.jl | 6 +++ 9 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/CompatHelper.yml create mode 100644 .github/workflows/TagBot.yml create mode 100644 .github/workflows/ci.yml create mode 100644 .gitignore create mode 100644 Project.toml create mode 100644 src/AdvancedPS.jl create mode 100644 test/Project.toml create mode 100644 test/runtests.jl diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 00000000..c78fb69a --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,16 @@ +name: CompatHelper +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: +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 }} + COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} + run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs = ["", "test"])' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 00000000..253866e9 --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,15 @@ +name: TagBot +on: + 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 + with: + token: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..02114b3d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + contnue-on-error: ${{ matrix.version == 'nightly' }} + strategy: + matrix: + version: + - '1.3' + - '1' + - 'nightly' + os: + - ubuntu-latest + - macOS-latest + - windows-latest + arch: + - x64 + - x86 + exclude: + - os: macOS-latest + arch: x86 + include: + - version: '1' + os: ubuntu-latest + arch: x64 + coverage: true + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - 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 }}- + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + if: matrix.coverage + - uses: codecov/codecov-action@v1 + if: matrix.coverage + with: + file: lcov.info + - uses: coverallsapp/github-action@master + if: matrix.coverage + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: lcov.info diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..a694f338 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.jl.cov +*.jl.*.cov +*.jl.mem +/Manifest.toml +/test/Manifest.toml \ No newline at end of file diff --git a/Project.toml b/Project.toml new file mode 100644 index 00000000..e10e01bc --- /dev/null +++ b/Project.toml @@ -0,0 +1,7 @@ +name = "AdvancedPS" +uuid = "576499cb-2369-40b2-a588-c64705576edc" +authors = ["TuringLang"] +version = "0.1.0" + +[compat] +julia = "1.3" diff --git a/README.md b/README.md index 49974209..6fe8d052 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -# AdvancedParticleSamplers.jl - +# AdvancedPS +[![Build Status](https://github.com/TuringLang/AdvancedPS.jl/workflows/CI/badge.svg?branch=master)](https://github.com/TuringLang/AdvancedPS.jl/actions?query=workflow%3ACI%20branch%3Amaster) +[![Coverage](https://codecov.io/gh/TuringLang/AdvancedPS.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/TuringLang/AdvancedPS.jl) +[![Coverage](https://coveralls.io/repos/github/TuringLang/AdvancedPS.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/AdvancedPS.jl?branch=master) ### Reference diff --git a/src/AdvancedPS.jl b/src/AdvancedPS.jl new file mode 100644 index 00000000..a86133e1 --- /dev/null +++ b/src/AdvancedPS.jl @@ -0,0 +1,5 @@ +module AdvancedPS + +# Write your package code here. + +end diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 00000000..73d73977 --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,5 @@ +[deps] +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[compat] +julia = "1.3" \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl new file mode 100644 index 00000000..d801d119 --- /dev/null +++ b/test/runtests.jl @@ -0,0 +1,6 @@ +using AdvancedPS +using Test + +@testset "AdvancedPS.jl" begin + # Write your tests here. +end From a6ab4e370e9c7f2c9180b0d6dcd7be64c0ea56c6 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 30 Nov 2020 17:03:46 +0100 Subject: [PATCH 2/2] Fix typo --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02114b3d..cf131009 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} - contnue-on-error: ${{ matrix.version == 'nightly' }} + continue-on-error: ${{ matrix.version == 'nightly' }} strategy: matrix: version: