mirror of
https://github.com/cberner/raptorq.git
synced 2024-06-30 18:51:43 +00:00
Switch to Github CI
This commit is contained in:
parent
a96272a0c7
commit
a3fc1500b5
34
.github/workflows/ci.yml
vendored
Normal file
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
|
30
.travis.yml
30
.travis.yml
@ -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
|
Loading…
Reference in New Issue
Block a user