0g-storage-node/.github/workflows/tests.yml
Bo QIU e7011b4657
use common actoin to setup rust with cargo cache enabled (#14)
* use common actoin to setup rust with cargo cache enabled

* hotfix for actions syntax

* hotfix actions syntax

* fix wrong action path

* aaa

* bbb

* ccc

* ddd
2024-01-29 16:25:04 +08:00

43 lines
816 B
YAML

name: functional-test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Rust (cache & toolchain)
uses: ./.github/actions/setup-rust
- name: Build
run: cargo build --release --verbose
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
cd tests
python test_all.py