0.9.0 #155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 }} | |