Skip to content

Commit

Permalink
use __truediv__; add Lambda; close #390 (#391)
Browse files Browse the repository at this point in the history
* use __truediv__; add Lambda; close #390

* replace travis with github actions
  • Loading branch information
jverzani authored Dec 3, 2020
1 parent e6ced1f commit c929d0e
Show file tree
Hide file tree
Showing 13 changed files with 1,272 additions and 56 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI-nightly
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- 'nightly'
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
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
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.0' # lowest supported version
- '1' # last released version
os:
- ubuntu-latest
- macos-latest
- windows-latest
arch:
- x64
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
docs/build
docs/site
Manifest.toml
appveyor.yml
.travis.yml
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SymPy"
uuid = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
version = "1.0.33"
version = "1.0.34"


[deps]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.com/jverzani/SymPy.jl.svg?branch=master)](https://travis-ci.com/jverzani/SymPy.jl)
![Build status](https://github.com/JuliaPy/SymPy.jl/workflows/CI/badge.svg)](https://github.com/JuliaPy/SymPy.jl/actions)
 
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliahub.com/docs/SymPy)

Expand Down
6 changes: 6 additions & 0 deletions docs/src/Tutorial/calculus.md
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,12 @@ flag `evaluate=True`:
```jldoctest calculus
julia> sympy.differentiate_finite(f(x)*g(x), evaluate=true)
/Users/verzani/.julia/conda/3/lib/python3.7/site-packages/sympy/calculus/finite_diff.py:477: SymPyDeprecationWarning:
``evaluate`` flag has been deprecated since SymPy 1.5. See
https://github.com/sympy/sympy/issues/17881 for more info.
deprecated_since_version="1.5").warn()
(-f(x - 1/2) + f(x + 1/2))⋅g(x) + (-g(x - 1/2) + g(x + 1/2))⋅f(x)
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/Tutorial/gotchas.md
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ julia> ex = x^2 - 2x + 2
x - 2⋅x + 2
julia> fn = lambdify(ex)
#87 (generic function with 1 method)
#89 (generic function with 1 method)
julia> fn(1) - ex(1)
0
Expand Down
Loading

3 comments on commit c929d0e

@jverzani
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@JuliaRegister register

@jverzani
Copy link
Collaborator 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 created: JuliaRegistries/General/25746

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 v1.0.34 -m "<description of version>" c929d0ef124f6c4194f3314155d12d2572cb470d
git push origin v1.0.34

Please sign in to comment.