Skip to content

Commit

Permalink
update package (#289)
Browse files Browse the repository at this point in the history
* updated package

* trigger workflow

* updated julia version in compat

* updated release version
  • Loading branch information
lucaferranti authored Apr 28, 2021
1 parent 0a43934 commit 3e32401
Show file tree
Hide file tree
Showing 10 changed files with 122 additions and 85 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
fail-fast: false
matrix:
version:
- '1.5'
- '1.6'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
- x86
exclude:
- os: macOS-latest
arch: x86
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
- uses: codecov/codecov-action@v1
with:
file: lcov.info
15 changes: 15 additions & 0 deletions .github/workflows/CompactHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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 }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
14 changes: 14 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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 }}
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

29 changes: 29 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name = "ValidatedNumerics"
uuid = "d621b6e3-7715-5857-9c6f-c67000ef6083"
repo = "https://github.com/JuliaIntervals/ValidatedNumerics.jl.git"
version = "0.12.0"

[deps]
IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253"
IntervalConstraintProgramming = "138f1668-1576-5ad7-91b9-7425abbf3153"
IntervalContractors = "15111844-de3b-5229-b4ba-526f2f385dc9"
IntervalOptimisation = "c7c68f13-a4a2-5b9a-b424-07d005f8d9d2"
IntervalRootFinding = "d2bf35a9-74e0-55ec-b149-d360ff49b807"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
TaylorModels = "314ce334-5f6e-57ae-acf6-00b6e903104a"

[compat]
IntervalArithmetic = "0.16, 0.17, 0.18"
IntervalRootFinding = "0.5"
IntervalContractors = "0.4"
IntervalConstraintProgramming = "0.12"
IntervalOptimisation = "0.4"
TaylorModels = "0.3"
Reexport = "0.2, 1.0"
julia = "1.3, 1.4, 1.5, 1.6"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# ValidatedNumerics.jl #

[![Build Status](https://travis-ci.org/JuliaIntervals/ValidatedNumerics.jl.svg?branch=master)](https://travis-ci.org/JuliaIntervals/ValidatedNumerics.jl)
[![Coverage Status](https://coveralls.io/repos/dpsanders/ValidatedNumerics.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/dpsanders/ValidatedNumerics.jl?branch=master)
[![codecov](https://codecov.io/gh/JuliaIntervals/ValidatedNumerics.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaIntervals/ValidatedNumerics.jl)
[![Join the chat at https://gitter.im/dpsanders/ValidatedNumerics.jl](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dpsanders/ValidatedNumerics.jl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://github.com/JuliaIntervals/ValidatedNumerics.jl/workflows/CI/badge.svg)](https://github.com/JuliaIntervals/ValidatedNumerics.jl/actions/workflows/CI.yml)
[![coverage](https://codecov.io/gh/JuliaIntervals/ValidatedNumerics.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaIntervals/ValidatedNumerics.jl)
[![docs](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliaintervals.github.io/pages/packages/)


`ValidatedNumerics.jl` is a suite of Julia packages for performing *Validated Numerics* in Julia, i.e. *rigorous* computations with finite-precision floating-point arithmetic, using **interval arithmetic**: quantities are treated as intervals that are propagated throughout a calculation. The final result is an interval that is *guaranteed* to contain the correct result, starting from the given initial data.

Expand All @@ -29,9 +29,11 @@ Since version 0.9, `ValidatedNumerics.jl` is a meta-package that automatically i

- [`IntervalContractors.jl`](https://github.com/JuliaIntervals/IntervalContractors.jl): contractors and reverse (or inverse) functions

- [`TaylorModels.jl`](https://github.com/JuliaIntervals/TaylorModels.jl): rigorous function approximation


## Documentation
Documentation is available separately for each of the above packages.
The documentation for each of the above packages can be found [here](https://juliaintervals.github.io/pages/packages/)

## IEEE Standard 1788-2015 - IEEE Standard for Interval Arithmetic
The IEEE Std 1788-2015 - IEEE Standard for Interval Arithmetic was [published](https://standards.ieee.org/findstds/standard/1788-2015.html) in June 2015. We are working towards having `ValidatedNumerics` be conformant with this standard.
Expand Down
9 changes: 0 additions & 9 deletions REQUIRE

This file was deleted.

43 changes: 0 additions & 43 deletions appveyor.yml

This file was deleted.

1 change: 1 addition & 0 deletions src/ValidatedNumerics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ using Reexport
@reexport using IntervalContractors
@reexport using IntervalConstraintProgramming
@reexport using IntervalOptimisation
@reexport using TaylorModels

end # module ValidatedNumerics
9 changes: 8 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ using Test
@testset "IntervalOptimisation" begin
f(x) = x^4 - 3x^3 + 2x

globalmin, minimisers = minimise(f, -1e10..1e10, 1e-7)
globalmin, minimisers = minimise(f, -1e10..1e10, tol=1e-5)

@test globalmin (-4.15.. -4.14)
end

@testset "TaylorModels" begin
x0 = Interval(0.0)
ii0 = Interval(-0.5, 0.5)

tpol = exp( Taylor1(2) )
@test TaylorModels.bound_taylor1( tpol, ii0) == tpol(ii0.lo) .. tpol(ii0.hi)
end
end

2 comments on commit 3e32401

@dpsanders
Copy link
Member

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/35604

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.12.0 -m "<description of version>" 3e32401ef5ffa0f2913d32dbcb7a7a5172d645c4
git push origin v0.12.0

Please sign in to comment.