Skip to content

Commit 4de6269

Browse files
authored
Merge pull request #166 from PyO3/remove-travis
Remove travis setting
2 parents b2f68d8 + 343923a commit 4de6269

File tree

4 files changed

+55
-56
lines changed

4 files changed

+55
-56
lines changed

.github/workflows/doc.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: gh-pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- remove-travis
8+
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
tag_name: ${{ steps.prepare_tag.outputs.tag_name }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Build the doc
18+
run: |
19+
cargo doc --all-features --no-deps
20+
echo "<meta http-equiv=refresh content=0;url=pyo3/index.html>" > target/doc/index.html
21+
22+
- name: Prepare tag
23+
id: prepare_tag
24+
run: |
25+
TAG_NAME="${GITHUB_REF##*/}"
26+
echo "::set-output name=tag_name::${TAG_NAME}"
27+
28+
- name: Deploy
29+
uses: peaceiris/[email protected]
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./target/doc/
33+
destination_dir: ${{ steps.prepare_tag.outputs.tag_name }}
34+
full_commit_message: 'Upload documentation for ${{ steps.prepare_tag.outputs.tag_name }}'

.github/workflows/test.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,30 @@ name: Test
33
on: [push, pull_request]
44

55
jobs:
6+
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-rs/toolchain@v1
12+
with:
13+
toolchain: stable
14+
profile: minimal
15+
components: rustfmt, clippy
16+
- run:
17+
cargo fmt --all -- check
18+
cargo clippy --tests
19+
for example in examples/*; do (cd $example/; cargo clippy) || exit 1; done
20+
621
build:
722
name: python${{ matrix.python-version }}-${{ matrix.platform.python-architecture }} ${{ matrix.platform.os }}
823
runs-on: ${{ matrix.platform.os }}
924
strategy:
1025
max-parallel: 12
1126
matrix:
12-
python-version: [3.5, 3.6, 3.7, 3.8]
27+
python-version: [3.6, 3.7, 3.8, 3.9]
1328
platform: [
29+
{ os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" },
1430
{ os: "macOS-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
1531
{ os: "windows-latest", python-architecture: "x64", rust-target: "x86_64-pc-windows-msvc" },
1632
{ os: "windows-latest", python-architecture: "x86", rust-target: "i686-pc-windows-msvc" },

.travis.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
rust-numpy
22
===========
3-
[![Build Status](https://travis-ci.org/pyo3/rust-numpy.svg?branch=master)](https://travis-ci.org/pyo3/rust-numpy)
43
[![Actions Status](https://github.com/pyo3/rust-numpy/workflows/Test/badge.svg)](https://github.com/pyo3/rust-numpy/actions)
54
[![Crate](http://meritbadge.herokuapp.com/numpy)](https://crates.io/crates/numpy)
65
[![minimum rustc 1.39](https://img.shields.io/badge/rustc-1.39+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
@@ -14,6 +13,8 @@ Rust bindings for the NumPy C-API
1413

1514
## Requirements
1615
- Rust 1.39+
16+
- Python >= 3.6
17+
- Python 3.5 support is dropped from 0.13
1718
- Some Rust libraries
1819
- [ndarray](https://github.com/bluss/ndarray) for rust-side matrix library
1920
- [pyo3](https://github.com/PyO3/pyo3) for cpython binding
@@ -25,10 +26,6 @@ Rust bindings for the NumPy C-API
2526
Starting from 0.3, rust-numpy migrated from rust-cpython to pyo3.
2627
If you want to use rust-cpython, use version 0.2.1 from crates.io.
2728

28-
## Supported Python version
29-
30-
Currently 3.5, 3.6, 3.7, and 3.8 are supported.
31-
3229

3330
## Python2 Support
3431
Version 0.5.0 is the last version that supports Python2.
@@ -43,7 +40,7 @@ features = ["python2"]
4340
```
4441
.
4542

46-
You can also automatically specify python version in [setup.py](examples/simple-extension/setup.py),
43+
You can also automatically specify python version in `setup.py`,
4744
using [setuptools-rust](https://github.com/PyO3/setuptools-rust).
4845

4946

@@ -84,7 +81,7 @@ fn main() -> PyResult<()> {
8481

8582
### Write a Python module in Rust
8683

87-
Please see the [examples](examples) directory for a complete example
84+
Please see the [examples](https://github.com/PyO3/rust-numpy/examples) directory for a complete example
8885

8986
```toml
9087
[lib]

0 commit comments

Comments
 (0)