Skip to content

Commit

Permalink
Add CI workflow to test Python code.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinling committed Jun 24, 2024
1 parent 5f19cd0 commit 304fbf8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python

on:
push:
pull_request:
# Run automatically every monday
schedule:
- cron: 1 12 * * 1

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Build and install
run: python -m pip install amaranth_stdio luna_soc cynthion/python

- name: Run unit tests
run: python -m cynthion.gateware.analyzer.analyzer

0 comments on commit 304fbf8

Please sign in to comment.