Skip to content

add integration tests #8

add integration tests

add integration tests #8

Workflow file for this run

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run unit tests
run: cargo test --verbose
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install -r tests/requirements-freeze.txt
cargo build
- name: Run integration tests
run: |
(./target/debug/vmessy --config config/config.toml && sleep 2) &
VMESSY_HOST='127.0.0.1' python3 -m pytest tests