Skip to content

Commit

Permalink
Create test-feature.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stdefeber authored Aug 14, 2024
1 parent f22a8d4 commit 9823613
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: pytest-feature

on:
push:
branches:
- 'feature/*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-xdist
pip install pyyaml jinja2 wavedrom
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y libxtst6:i386 libxft2:i386
wget https://download.altera.com/akdlm/software/acdsinst/20.1std/711/ib_installers/ModelSimSetup-20.1.0.711-linux.run
chmod +x ModelSimSetup-20.1.0.711-linux.run
./ModelSimSetup-20.1.0.711-linux.run --mode unattended --accept_eula 1 --installdir $HOME/ModelSim-20.1.0 --unattendedmodeui none
echo "$HOME/ModelSim-20.1.0/modelsim_ase/bin" >> $GITHUB_PATH
- name: Test package
run: |
pytest -v -n auto

0 comments on commit 9823613

Please sign in to comment.