Skip to content

Correction for #224 #168

Correction for #224

Correction for #224 #168

Workflow file for this run

name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
ci-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Configure Python
run: |
python3 -m venv python
./python/bin/python3 -m pip install wheel twine
./python/bin/python3 -m pip install pip setuptools --upgrade
./python/bin/python3 -m pip install -r requirements_dev.txt
export BUILD_NUM=$GITHUB_RUN_ID
./python/bin/python3 setup.py bdist_wheel --universal
- name: Run Tests
run: |
export PYTHONPATH=`pwd`/src
tests=`ls ve/unit/*.py | grep -v test_random_dist | grep -v vsc_test_case | grep -v test_covergroup_programmatic | grep -v test_rand_mode`
./python/bin/python3 -m pytest --no-cov -v $tests
# for test in $tests; do
# echo "Test file: $test"
# ./python/bin/python3 -m pytest --no-cov -v $test
# if test $? -eq 0; then
# echo "Status 0"
# else
# echo "Status non-0"
# fi
#done
echo "Final status: $?"
- name: Build Docs
run: |
cd doc
make html
touch build/html/.nojekyll
cp -r build/html ../
- name: Deploy
if: startsWith(github.ref, 'refs/heads/master')
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
folder: html
- name: Publish to PyPi
if: startsWith(github.ref, 'refs/heads/master')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}