Skip to content

Commit

Permalink
Add KiCad 8 testing on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
adamws committed Mar 6, 2024
1 parent be9e9d7 commit 4eb441b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
version: 2.1

jobs:
test-linux-kicad7:
test-linux:
parameters:
version:
type: string
docker:
- image: admwscki/kicad-kbplacer-primary:7.0.9-lunar
- image: admwscki/kicad-kbplacer-primary:<<parameters.version>>
steps:
- checkout
- run:
Expand All @@ -16,9 +19,11 @@ jobs:
pytest --junitxml=test-results/pytest/results.xml tests/
- store_test_results:
path: test-results
- when: # run only on master
- when: # run only on master and one kicad selected version
condition:
equal: [ master, << pipeline.git.branch >> ]
and:
- equal: [ 8.0.0-mantic, << parameters.version >> ]
- equal: [ master, << pipeline.git.branch >> ]
steps:
- run:
name: Publish coverage
Expand Down Expand Up @@ -102,11 +107,16 @@ jobs:
workflows:
main:
jobs:
- test-linux-kicad7
- test-linux:
matrix:
parameters:
version:
- 7.0.11-mantic
- 8.0.0-mantic
- test-windows-kicad7
- create-pcm-package:
requires:
- test-linux-kicad7
- test-linux
- test-windows-kicad7
kicad-release:
jobs:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_setup_logging(tmpdir: Path) -> None:


def test_get_kicad_version() -> None:
assert get_kicad_version().startswith("7")
assert get_kicad_version()[0] in ["7", "8"]


@patch("pcbnew.Version")
Expand Down

0 comments on commit 4eb441b

Please sign in to comment.