Skip to content

Commit

Permalink
Fix CI fails, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarqu committed Mar 1, 2024
1 parent 1e005bb commit ac1684f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
runs-on: ubuntu-latest
name: deploy
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
with:
# To generate a valid version number setuptools_scm needs sufficient
# git history.
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install pypa/build
Expand Down
31 changes: 20 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,44 @@ name: Tests

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

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
tests:
name: ${{matrix.extra_name}}${{matrix.sim}} (${{matrix.sim-version}}) | ${{matrix.os}} | Python ${{matrix.python-version}} ${{matrix.may_fail && '| May Fail' || ''}}
runs-on: ${{matrix.os}}
# Run on external PRs, but not on internal PRs (since that would duplicate push-triggered runs)
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

name: ${{ matrix.extra_name }}${{ matrix.sim }} (${{ matrix.sim-version }}) | ${{ matrix.os }} | Python ${{ matrix.python-version }} ${{ matrix.may_fail && '| May Fail' || '' }}
runs-on: ${{ matrix.os }}
env:
SIM: ${{matrix.sim}}
TOPLEVEL_LANG: ${{matrix.lang}}
SIM: ${{ matrix.sim }}
TOPLEVEL_LANG: ${{ matrix.lang }}
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.12"]
include:
- sim: icarus
sim-version: apt
# python-version: "3.6"
lang: verilog
os: ubuntu-22.04
os: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
python-version: ${{ matrix.python-version }}
- name: Install cocotb requirements
env:
DEBIAN_FRONTEND: noninteractive
Expand All @@ -45,11 +54,11 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install --yes iverilog
sudo apt-get install --yes --no-install-recommends iverilog
- name: Install testing requirements
run: |
pip install nox
- name: Run tests
continue-on-error: ${{matrix.may_fail || false}}
continue-on-error: ${{ matrix.may_fail || false }}
run: |
nox -e tests

0 comments on commit ac1684f

Please sign in to comment.