Skip to content

Update to chipsalliance/rocket-chip commit #4f197707e #50

Update to chipsalliance/rocket-chip commit #4f197707e

Update to chipsalliance/rocket-chip commit #4f197707e #50

name: PyPI
on:
push:
branches:
- master
- main
jobs:
sdist:
name: sdist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Always clone the full depth so git-describe works.
fetch-depth: 0
submodules: true
- name: Set up Python 🐍 3
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install build dependencies
run: |
pip install -U pip
pip install -U setuptools wheel twine
- name: Install package dependencies
run: |
python setup.py install
- name: Run smoke test
run: |
python test.py
- name: Build distribution 📦
run: |
python setup.py sdist
rm dist/*.egg
- name: Check distribution 📦
run: |
du -h dist/*
twine check dist/*
- name: Publish to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload --skip-existing --repository testpypi dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --skip-existing dist/*
wheels:
strategy:
matrix:
python-version: [ '3.x' ]
fail-fast: false
name: ${{ matrix.python-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Always clone the full depth so git-describe works.
fetch-depth: 0
submodules: true
- name: Set up Python 🐍 ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: |
pip install -U pip
pip install -U setuptools wheel twine
- name: Install package dependencies
run: |
python setup.py install
- name: Run smoke test
run: |
python test.py
- name: Build distribution 📦
run: |
python setup.py bdist_wheel
rm dist/*.egg
- name: Check distribution 📦
run: |
du -h dist/*
twine check dist/*
- name: Publish to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload --skip-existing --repository testpypi dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --skip-existing dist/*