-
Notifications
You must be signed in to change notification settings - Fork 35
37 lines (33 loc) · 1.12 KB
/
test-on-push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: pytest
on: [push]
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
- name: "Archive build artifacts"
uses: [email protected]
with:
name: "debug"
path: |
/tmp
retention-days: 2