Skip to content

Commit 36a8a58

Browse files
committed
ci: install check moved, now tested in multiple Python versions and Windows
1 parent 5213893 commit 36a8a58

5 files changed

Lines changed: 38 additions & 19 deletions

File tree

.github/workflows/inst.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'inst'
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
inst:
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v4
11+
- name: Check Install
12+
run: |
13+
pip install --upgrade pip setuptools wheel
14+
pip install .
15+
vhdl2vhdl -v
16+
vhdl2vlog -v
17+
slog2vlog -v

.github/workflows/test.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,29 @@ on:
55

66
jobs:
77
test:
8-
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
os: ['ubuntu', 'windows']
11+
pyver: ['3.8', '3.9', '3.10', '3.11', '3.12']
12+
exclude:
13+
- os: 'windows'
14+
pyver: '3.8'
15+
- os: 'windows'
16+
pyver: '3.9'
17+
- os: 'windows'
18+
pyver: '3.10'
19+
- os: 'windows'
20+
pyver: '3.11'
21+
runs-on: ${{ matrix.os }}-latest
22+
name: ${{ matrix.os }} | ${{ matrix.pyver }}
923
steps:
1024
- name: Checkout repository
1125
uses: actions/checkout@v4
12-
- name: Check Install
13-
run: make venv
26+
- name: Set up Python ${{ matrix.pyver }}
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.pyver }}
30+
- name: Install dependencies
31+
run: pip install jinja2
1432
- name: Run tests
1533
run: make test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ __pycache__
22
build
33
ignore
44
results
5-
venv
65
*.egg-info

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ lint:
1515
test:
1616
cd tests && bash run.sh
1717

18-
venv:
19-
bash venv.sh
20-
2118
clean:
2219
py3clean .
2320
rm -fr .pytest_cache

venv.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)