Skip to content

v0.8.2 #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI

on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]

# Cancel any in-flight jobs for the same PR/branch so there's only one active
# at a time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
RUST_BACKTRACE: full

jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --all -- --check
- run: cd ${{ github.workspace }}/examples && cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -D warnings
- run: cd ${{ github.workspace }}/examples && cargo clippy -- -D warnings

test:
name: Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --features=plotly_ndarray,kaleido

build_examples:
name: Build Examples
strategy:
fail-fast: false
matrix:
example: [ # missing jupyter and wasm-yew-minimal
3d_charts,
basic_charts,
custom_controls,
financial_charts,
images,
kaleido,
maps,
ndarray,
scientific_charts,
shapes,
subplots
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cd ${{ github.workspace }}/examples/${{ matrix.example }} && cargo build

91 changes: 0 additions & 91 deletions .github/workflows/dev_ci.yml

This file was deleted.

137 changes: 61 additions & 76 deletions .github/workflows/release_ci.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,76 @@
name: build_master
name: Release

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Cancel any in-flight jobs for the same PR/branch so there's only one active
# at a time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

jobs:
build_linux:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: build_linux
run: cargo build --all-features --verbose --release
- name: rustfmt
run: cargo fmt --all -- --check
- name: Run tests
run: cargo test --features plotly_ndarray,kaleido --release --verbose
- name: Run basic charts
run: cargo run --example basic_charts --release
- name: Run financial charts
run: cargo run --example financial_charts --release
- name: Run fundamentals
run: cargo run --example fundamentals --release
- name: Run ndarray support
run: cargo run --example ndarray_support --features plotly_ndarray --release
- name: Run scientific charts
run: cargo run --example scientific_charts --release
- name: Run statistical charts
run: cargo run --example statistical_charts --release
- name: Run subplots
run: cargo run --example subplots --release
- name: Run 3D plots
run: cargo run --example plot3d --release

build_windows:
runs-on: windows-latest

- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --all -- --check
- run: cd ${{ github.workspace }}/examples && cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build_windows
run: cargo build --all-features --verbose --release
- name: Run tests
run: cargo test --features plotly_ndarray,kaleido --release --verbose
- name: Run basic charts
run: cargo run --example basic_charts --release
- name: Run financial charts
run: cargo run --example financial_charts --release
- name: Run fundamentals
run: cargo run --example fundamentals --release
- name: Run ndarray support
run: cargo run --example ndarray_support --features plotly_ndarray --release
- name: Run scientific charts
run: cargo run --example scientific_charts --release
- name: Run statistical charts
run: cargo run --example statistical_charts --release
- name: Run subplots
run: cargo run --example subplots --release
- name: Run 3D plots
run: cargo run --example plot3d --release

build_macos:
runs-on: macos-latest
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -D warnings
- run: cd ${{ github.workspace }}/examples && cargo clippy -- -D warnings

test:
name: Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --features=plotly_ndarray,kaleido

build_examples:
name: Build Examples
strategy:
fail-fast: false
matrix:
example: [ # missing jupyter and wasm-yew-minimal
3d_charts,
basic_charts,
custom_controls,
financial_charts,
images,
kaleido,
maps,
ndarray,
scientific_charts,
shapes,
subplots
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build_macos
run: cargo build --all-features --verbose --release
- name: Run tests
run: cargo test --features plotly_ndarray,kaleido --release --verbose
- name: Run basic charts
run: cargo run --example basic_charts --release
- name: Run financial charts
run: cargo run --example financial_charts --release
- name: Run fundamentals
run: cargo run --example fundamentals --release
- name: Run ndarray support
run: cargo run --example ndarray_support --features plotly_ndarray --release
- name: Run scientific charts
run: cargo run --example scientific_charts --release
- name: Run statistical charts
run: cargo run --example statistical_charts --release
- name: Run subplots
run: cargo run --example subplots --release
- name: Run 3D plots
run: cargo run --example plot3d --release
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cd ${{ github.workspace }}/examples/${{ matrix.example }} && cargo build

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ gh-pages/
Untitled*
.ipynb_checkpoints/
.DS_Store
.vscode
.vscode
dist/
out.*
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.2] - 2022-11-03
### Added
- [[#110](https://github.com/igiagkiozis/plotly/pull/110)] `LegendGroupTitle` to existing traces.
- [[#88](https://github.com/igiagkiozis/plotly/pull/88)] `Mesh3D`, `Image`, `ScatterMapbox` traces.

### Changed
- [[#113](https://github.com/igiagkiozis/plotly/pull/113)] Refactored the structure of the examples to make them more accessible, whilst adding more examples e.g. for `wasm`.
- [[#115](https://github.com/igiagkiozis/plotly/pull/115)] Simplify the function signature of Plot.to_inline_html() so that it just takes `Option<&str>` as an argument.

## [0.8.1] - 2022-09-25
### Added
- Button support (i.e. [updatemenus](https://plotly.com/javascript/reference/layout/updatemenus/)) contibuted by [@sreenathkrishnan](https://github.com/sreenathkrishnan). Details and examples in this well written PR [#99](https://github.com/igiagkiozis/plotly/pull/99).
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
members = [
"plotly",
"plotly_derive",
"plotly_kaleido"
"plotly_kaleido",
]
Loading