Skip to content

Removed a lot of recursion #457

Removed a lot of recursion

Removed a lot of recursion #457

Workflow file for this run

name: Regression Tests
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, 3.10.5]
runs-on: ${{ matrix.os }}
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v2
- name: Show Git Version
run : |
git --version
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: "nightly-2022-04-21"
override: true
#components: rustfmt, clippy
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Needed to compile keyring library
# Install taken from keyring library:
# https://github.com/hwchen/keyring-rs/blob/v0.10.1/.github/workflows/ci.yaml#L80-L84
- name: install libdbus
run: |
sudo apt update
sudo apt install libdbus-1-dev
if: contains(matrix.os, 'ubuntu')
- name: Build Origen CLI
working-directory: rust/origen/cli
run: cargo build --bins
- name: Add Origen to PATH (Linux)
if: matrix.os == 'ubuntu-latest'
run: echo "${{ github.workspace }}/rust/origen/target/debug" >> $GITHUB_PATH
- name: Add Origen to PATH (Windows)
if: matrix.os == 'windows-latest'
run: echo "${{ github.workspace }}/rust/origen/target/debug" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Display Python Version
run: python -c "import sys; print(sys.version)"
- name: Display Origen CLI Version
run: origen -v
- name: Build PyAPI
run: origen build
- name: Setup App Env
working-directory: test_apps/python_app
run: origen env setup
- name: Display Origen App Version
working-directory: test_apps/python_app
run: origen -v
- name: Display Poetry Version
working-directory: test_apps/python_app
run: poetry --version
- name: Run Python Unit Tests
working-directory: test_apps/python_app
run: origen exec pytest -vv
- name: Run Diff Tests
working-directory: test_apps/python_app
run: origen examples
- name: Run Rust Tests
if: matrix.python-version == 3.8
working-directory: rust/origen
run: cargo test --workspace
- name: Build PyAPI - Metal
run: origen build --metal
- name: Install Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.14
- name: Setup Python Env - Metal
working-directory: python/origen_metal
run: poetry install
- name: Run Python Unit Tests - Metal
working-directory: python/origen_metal
run: poetry run pytest -vv
- name: Run Rust Tests - Metal
if: matrix.python-version == 3.8
working-directory: rust/origen_metal
run: cargo test