Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7b82fc948This file is pinned to the selected release. Download the original to open it in your design tool.
---
name: Unit tests
on: [push, pull_request, workflow_dispatch]
jobs:
Python311:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Python 3.11
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Get Docker image
run: docker pull suoto/hdl_checker_test:latest
- name: Run tests
run: ./run_tests.sh -e py311-linux -- -v
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)
Python312:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Python 3.12
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Get Docker image
run: docker pull suoto/hdl_checker_test:latest
- name: Run tests
run: ./run_tests.sh -e py312-linux -- -v
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)
Python313:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Python 3.13
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Get Docker image
run: docker pull suoto/hdl_checker_test:latest
- name: Run tests
run: ./run_tests.sh -e py313-linux -- -v
- name: Upload coverage
run: bash <(curl -s https://codecov.io/bash)
Pypi:
runs-on: ubuntu-latest
needs: [Python311, Python312, Python313]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Build dist
run: pip install build && python -m build --sdist
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}