2024-01-03 10:24:52 +00:00
|
|
|
name: functional-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-03-27 05:54:06 +00:00
|
|
|
- name: Free Disk Space (Ubuntu)
|
|
|
|
uses: jlumbroso/free-disk-space@main
|
|
|
|
with:
|
|
|
|
# this might remove tools that are actually needed,
|
|
|
|
# if set to "true" but frees about 6 GB
|
|
|
|
tool-cache: false
|
|
|
|
android: true
|
|
|
|
dotnet: true
|
|
|
|
haskell: true
|
|
|
|
large-packages: false
|
|
|
|
docker-images: true
|
|
|
|
swap-storage: true
|
|
|
|
|
2024-01-29 08:25:04 +00:00
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v3
|
2024-01-03 10:24:52 +00:00
|
|
|
with:
|
2024-01-29 08:25:04 +00:00
|
|
|
submodules: recursive
|
2024-01-03 10:24:52 +00:00
|
|
|
|
2024-01-29 08:25:04 +00:00
|
|
|
- name: Setup Rust (cache & toolchain)
|
|
|
|
uses: ./.github/actions/setup-rust
|
2024-01-03 10:24:52 +00:00
|
|
|
|
|
|
|
- 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
|
2024-03-27 05:54:06 +00:00
|
|
|
python test_all.py --max-workers 3
|