-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5074061
Showing
22 changed files
with
8,844 additions
and
0 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,71 @@ | ||
# Derived from https://github.com/mre/hyperjson/blob/master/.github/workflows/ci.yml | ||
name: CI | ||
|
||
on: | ||
release: | ||
types: [created] | ||
push: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install latest nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
|
||
- name: Lint with rustfmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
|
||
- name: Lint with clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-targets --all-features | ||
|
||
- name: Test with cargo | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: test | ||
toolchain: nightly | ||
|
||
build: | ||
runs-on: ${{ matrix.os }} | ||
needs: lint | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Install latest nightly | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
|
||
- name: Build Python package | ||
run: maturin develop --release | ||
|
||
- name: pytest | ||
run: tox |
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,13 @@ | ||
target/ | ||
venv*/ | ||
.venv/ | ||
.pytest_cache/ | ||
.tox/ | ||
*.so | ||
__pycache__/ | ||
*.egg-info/ | ||
*.egg | ||
dist/ | ||
*.whl | ||
build | ||
dist |
Oops, something went wrong.