Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ozekik committed Mar 20, 2020
0 parents commit 5074061
Show file tree
Hide file tree
Showing 22 changed files with 8,844 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/ci.yaml
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
13 changes: 13 additions & 0 deletions .gitignore
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
Loading

0 comments on commit 5074061

Please sign in to comment.