Switch to Github CI

This commit is contained in:
Christopher Berner 2020-11-25 21:48:40 -08:00
parent a96272a0c7
commit a3fc1500b5
2 changed files with 34 additions and 30 deletions

34
.github/workflows/ci.yml vendored Normal file

@ -0,0 +1,34 @@
name: CI
on:
pull_request:
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt update
sudo apt install -y python3 python3-pip python3-dev python3-venv
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Install cargo-deny
run: cargo install --force --version 0.6.8 cargo-deny --locked
- name: Run tests
run: make test
- name: Run CPython wrapper tests
run: |
python3 -m venv venv
source venv/bin/activate
pip3 install --upgrade pip
pip3 install maturin
make test_py

@ -1,30 +0,0 @@
matrix:
fast_finish: true
include:
- name: Run tests
language: rust
rust: stable
install:
[]
before_script:
- cargo install cargo-deny --version 0.6.8
- rustup component add rustfmt
- rustup component add clippy
script:
- make test
- name: Run CPython wrapper tests
language: rust
rust: stable
install:
[]
before_script:
- cargo install cargo-deny
- rustup component add rustfmt
- rustup component add clippy
- sudo apt update && sudo apt install python3 python3-pip python3-dev python3-venv
- pip3 install --upgrade pip
- pip3 install maturin
- python3 -m venv venv
script:
- source venv/bin/activate && make test_py