Skip to content

Commit

Permalink
ci: simplified/enabled test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 committed May 27, 2024
1 parent fa24be1 commit c545884
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,26 @@ name: 'test'

on:
push:
pull_request:
schedule: # Run once a week to ensure tests pass with updated dependencies
- cron: '0 0 * * 6'

.jobs:
jobs:
test:
strategy:
matrix:
os: ['ubuntu']
pyver: ['3.6', '3.7', '3.8', '3.9', '3.10']
pyver: [3.8, 3.9, 3.10, 3.11, 3.12]
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os }} | ${{ matrix.pyver }}
steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Pull container images
run: |
docker pull hdlc/ghdl:yosys
docker pull hdlc/nextpnr:ice40
docker pull hdlc/nextpnr:ecp5
docker pull hdlc/icestorm
docker pull hdlc/prjtrellis
- name: Set up Python ${{ matrix.pyver }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyver }}
- name: Install dependencies
run: |
pip install pytest
pip install .
run: pip install pytest
- name: Run test
run: pytest
- name: Run examples
run: |
cd examples; make MOCKS=1
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lint:
git diff --check --cached

test:
pytest test
pytest

clean:
py3clean .
Expand Down
2 changes: 0 additions & 2 deletions fpga/__init__.py → pyfpga/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""PyFPGA"""

__version__ = '0.3.0-dev'

from fpga.project import Project

0 comments on commit c545884

Please sign in to comment.