Skip to content

Update test.yml

Update test.yml #41

Workflow file for this run

name: Test Automation
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
jobs:
test-rraft-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Set up pip and requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install protobuf compiler
run: |
sudo apt install -y protobuf-compiler
- name: Set up Rust toolchain
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- uses: actions-rs/cargo@v1
with:
toolchain: nightly
- name: Build and Test
run: |
make install
make test