File tree 2 files changed +22
-1
lines changed 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,31 @@ name: CI
3
3
jobs :
4
4
test :
5
5
runs-on : ubuntu-latest
6
+ strategy :
7
+ matrix :
8
+ python-version :
9
+ - ' 3.7'
10
+ # this version range needs to be synchronized with the one in pyproject.toml
11
+ amaranth-version :
12
+ - ' 0.2'
13
+ - ' 0.3'
14
+ - ' git'
15
+ fail-fast : false
6
16
steps :
7
17
- name : Check out source code
8
18
uses : actions/checkout@v3
9
19
- name : Set up Python
10
20
uses : actions/setup-python@v4
21
+ with :
22
+ python-version : ${{ matrix.python-version }}
23
+ - name : Install Amaranth release
24
+ if : ${{ matrix.amaranth-version != 'git' }}
25
+ run : |
26
+ pip install 'amaranth==${{ matrix.amaranth-version }}'
27
+ - name : Install Amaranth from git
28
+ if : ${{ matrix.amaranth-version == 'git' }}
29
+ run : |
30
+ pip install git+https://github.com/amaranth-lang/amaranth.git
11
31
- name : Test
12
32
run : |
13
- python setup.py test
33
+ python -m unittest discover -t . -s amaranth_boards -p '*.py'
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ license = {file = "LICENSE.txt"}
12
12
13
13
dependencies = [
14
14
" importlib_metadata; python_version<'3.8'" ,
15
+ # this version requirement needs to be synchronized with the one in .github/workflows/main.yml
15
16
" amaranth>=0.2,<0.5" ,
16
17
]
17
18
You can’t perform that action at this time.
0 commit comments