-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from Herb-AI/dev
Prepare Herb.jl for publication to JuliaHub
- Loading branch information
Showing
18 changed files
with
197 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: ['*'] | ||
pull_request: | ||
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.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.8' | ||
- 'nightly' | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.DOCUMENTER_KEY }} | ||
run: julia -e 'using CompatHelper; CompatHelper.main()' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: TagBot | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
inputs: | ||
lookback: | ||
default: 3 | ||
permissions: | ||
actions: read | ||
checks: read | ||
contents: write | ||
deployments: read | ||
issues: read | ||
discussions: read | ||
packages: read | ||
pages: read | ||
pull-requests: read | ||
repository-projects: read | ||
security-events: read | ||
statuses: read | ||
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 }} | ||
ssh: ${{ secrets.DOCUMENTER_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +0,0 @@ | ||
[submodule "HerbSearch.jl"] | ||
path = HerbSearch.jl | ||
url = https://github.com/Herb-AI/HerbSearch.jl.git | ||
[submodule "HerbGrammar.jl"] | ||
path = HerbGrammar.jl | ||
url = https://github.com/Herb-AI/HerbGrammar.jl.git | ||
[submodule "HerbData.jl"] | ||
path = HerbData.jl | ||
url = https://github.com/Herb-AI/HerbData.jl.git | ||
[submodule "HerbEvaluation.jl"] | ||
path = HerbEvaluation.jl | ||
url = https://github.com/Herb-AI/HerbEvaluation.jl.git | ||
[submodule "HerbExamples.jl"] | ||
path = HerbExamples.jl | ||
url = https://github.com/Herb-AI/HerbExamples.jl | ||
[submodule "HerbConstraints.jl"] | ||
path = HerbConstraints.jl | ||
url = https://github.com/Herb-AI/HerbConstraints.jl.git | ||
[submodule "HerbCore.jl"] | ||
path = HerbCore.jl | ||
url = https://github.com/Herb-AI/HerbCore.jl.git | ||
Submodule HerbConstraints.jl
deleted from
70a302
Submodule HerbCore.jl
deleted from
5b6bea
Submodule HerbData.jl
deleted from
c3fea1
Submodule HerbEvaluation.jl
deleted from
a0f8ef
Submodule HerbExamples.jl
deleted from
3d0825
Submodule HerbGrammar.jl
deleted from
091437
Submodule HerbSearch.jl
deleted from
e2e6c5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
name = "Herb" | ||
uuid = "c09c6b7f-4f63-49de-90d9-97a3563c0f4a" | ||
authors = ["Jaap de Jong <[email protected]>"] | ||
authors = ["Jaap de Jong <[email protected]>", "Tilman Hinnerichs <[email protected]>", "Sebastijan Dumancic <[email protected]>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" | ||
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" | ||
TreeView = "39424ebd-4cf3-5550-a685-96706a953f40" | ||
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | ||
HerbConstraints = "1fa96474-3206-4513-b4fa-23913f296dfc" | ||
HerbCore = "2b23ba43-8213-43cb-b5ea-38c12b45bd45" | ||
HerbData = "495a3ad3-8034-41b3-a087-aacf2fd71098" | ||
HerbEvaluation = "eb1bf938-813d-4942-ac0f-b4657a683e76" | ||
HerbGrammar = "4ef9e186-2fe5-4b24-8de7-9f7291f24af7" | ||
HerbSearch = "3008d8e8-f9aa-438a-92ed-26e9c7b4829f" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
|
||
[compat] | ||
AbstractTrees = "0.4" | ||
DataStructures = "0.17,0.18" | ||
TreeView = "0.5" | ||
julia = "1" | ||
HerbConstraints = "0.1.0" | ||
HerbCore = "0.1.1" | ||
HerbData = "0.1.1" | ||
HerbEvaluation = "0.1.0" | ||
HerbGrammar = "0.1.0" | ||
HerbSearch = "0.1.0" | ||
julia = "1.8" | ||
|
||
[extras] | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
[![Build Status](https://github.com/Herb-AI/Herb.jl/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/Herb-AI/Herb.jl/actions/workflows/CI.yml?query=branch%3Amaster) | ||
[![Dev-Docs](https://img.shields.io/badge/docs-latest-blue.svg)](https://Herb-AI.github.io/Herb.jl/dev) | ||
|
||
|
||
# Herb.jl | ||
*A library for defining and efficiently solving program synthesis tasks in Julia.* | ||
|
||
## Introduction | ||
When writing research software we almost always investigate highly specific properties or algorithms of our domain, leading to us building the tools from scratch over and over again. The very same holds for the field of program synthesis: Tools are hard to run, benchmarks are hard to get and prepare, and its hard to adapt our existing code to a novel idea. | ||
|
||
## Getting started | ||
|
||
As this project is working with git-submodules, after cloning please run | ||
Herb.jl will take care of this for you and helps you defining, solving and extending your program synthesis problems. | ||
|
||
``` | ||
git submodule init | ||
``` | ||
Herb.jl provides... | ||
- a unified and universal framework for program synthesis | ||
- Herb.jl allows you to describe all sorts of program synthesis problems using context-free grammars | ||
- a number of state-of-the-art benchmarks and solvers already implemented and usable out-of-the-box | ||
|
||
To update each submodule to their latest master commit, please run | ||
Herb.jl's sub-packages provide fast and easily extendable implementations of | ||
- various static and dynamic search strategies, | ||
- learning search strategies, sampling techniques and more, | ||
- constraint formulation and propagation, | ||
- easy grammar formulation and usage, | ||
- wide-range of usable program interpreters and languages + the possibility to use your own, and | ||
- efficient data formulation. | ||
|
||
``` | ||
<!-- git submodule -q foreach git pull -q origin master --> | ||
git submodule update --rebase --remote | ||
``` | ||
## Getting started | ||
Please check out our [tutorial](https://herb-ai.github.io/Herb.jl/dev/install/) | ||
|
||
## Conventions | ||
|
||
## Documentation | ||
The entire documentation is available at [https://herb-ai.github.io/Herb.jl/dev/install/](https://herb-ai.github.io/Herb.jl/dev/install/). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module HerbTest | ||
|
||
using HerbConstraints | ||
using HerbCore | ||
using HerbData | ||
using HerbEvaluation | ||
using HerbGrammar | ||
using HerbSearch | ||
|
||
using Test | ||
import Pkg | ||
|
||
@testset verbose=false "Herb" begin | ||
@test 1==1 # dummy test | ||
println("\n--- HerbConstraints tests ---") | ||
Pkg.test("HerbConstraints") | ||
println("\n--- HerbCore tests ---") | ||
Pkg.test("HerbCore") | ||
println("\n--- HerbData tests ---") | ||
Pkg.test("HerbData") | ||
println("\n--- HerbEvaluation tests ---") | ||
Pkg.test("HerbEvaluation") | ||
println("\n--- HerbGrammar tests ---") | ||
Pkg.test("HerbGrammar") | ||
println("\n--- HerbSearch tests ---") | ||
Pkg.test("HerbSearch") | ||
end | ||
|
||
end # module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module HerbTest | ||
|
||
using HerbConstraints | ||
using HerbCore | ||
using HerbData | ||
using HerbEvaluation | ||
using HerbGrammar | ||
using HerbSearch | ||
|
||
using Test | ||
import Pkg | ||
|
||
@testset verbose=false "Herb" begin | ||
# @test 1==1 # dummy test | ||
|
||
println("\n--- HerbConstraints tests ---") | ||
Pkg.test("HerbConstraints") | ||
println("\n--- HerbCore tests ---") | ||
Pkg.test("HerbCore") | ||
println("\n--- HerbData tests ---") | ||
Pkg.test("HerbData") | ||
println("\n--- HerbEvaluation tests ---") | ||
Pkg.test("HerbEvaluation") | ||
println("\n--- HerbGrammar tests ---") | ||
Pkg.test("HerbGrammar") | ||
println("\n--- HerbSearch tests ---") | ||
Pkg.test("HerbSearch") | ||
end | ||
|
||
end # module |
5b516a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
5b516a5
There was a problem hiding this comment.
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/90849
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: