Skip to content

Commit

Permalink
Update gh scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Anderson Ignacio da Silva <anderson@aignacio.com>
  • Loading branch information
aignacio committed Jun 18, 2024
1 parent dac9fc4 commit c006e44
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 116 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/lint.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/python-publish.yml

This file was deleted.

93 changes: 93 additions & 0 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Lint

on:
push:
branches:
- master
- 'stable/**'
pull_request:
branches:
- master
- 'stable/**'

jobs:
lint:
runs-on: ubuntu-22.04

strategy:
matrix:
python-version:
- 3.9

steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install nox
run: pip install --upgrade nox

- name: Run nox tests
run: nox -s "lint-${{ matrix.python-version }}"

tests:
runs-on: ubuntu-22.04
needs: lint

strategy:
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- 3.10
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install Icarus and its requirements
run: |
sudo apt update
sudo apt-get install build-essential libboost-dev iverilog verilator
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install nox
run: pip install --upgrade nox

- name: Run nox tests
run: nox -s "run-${{ matrix.python-version }}"

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install deps
run: >-
pip install cocotb cocotb-bus cocotb-test
- name: Install pypa/setuptools
run: >-
python -m
pip install wheel
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
47 changes: 0 additions & 47 deletions .github/workflows/test.yaml

This file was deleted.

0 comments on commit c006e44

Please sign in to comment.