Skip to content

Add output tests.

Add output tests. #40

name: Tests
on: [push, pull_request]
jobs:
ubuntu_test:
name: Ubuntu tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Rust
run: |
rustup toolchain install nightly
rustup default nightly
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
- name: Setup
run: |
sudo apt-get install python3-pip --force-yes
sudo pip3 install toml
sudo apt-get install gnuplot
sudo apt install virtualenv
- name: Tests
run: |
. setup_venv.sh
./cargo_util.py --test
./cargo_util.py --test_outputs
- name: Upload test outputs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: test_outputs
path: test_outputs