Skip to content

Commit

Permalink
pcb-tools, workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sainquake committed Feb 6, 2024
1 parent d49f7b9 commit 29f84d9
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 25 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,20 @@ jobs:
- uses: actions/checkout@v2
with:
path: repo

- name: Checkout pcb-versions repo
uses: actions/checkout@v3
with:
repository: RaccoonLabHardware/pcb-versions
token: ${{ secrets.ACCESS_TOKEN }}
path: repo/pcb-versions
path: repo/scripts/pcb-versions

- name: Check that all needed files exists (test-files-exists.py)
run: |
cd repo && python pcb-versions/test-files-exists.py
- name: Generate dict BOMList from BOM file
run: |
cd repo && pip install openpyxl && python pcb-versions/test-generateBOM.py
- name: Check Version Resistors is correct if exists (test-versions.py)
run: |
cd repo && python pcb-versions/test-versions.py
- name: Check Manufacturer Partnumber (test-wrong-MP.py)
run: |
cd repo && python pcb-versions/test-wrong-MP.py
- name: Check that all BOM components contains in 'pick and place' (test-BOM-PNP.py)
run: |
cd repo && pip install pandas && python pcb-versions/test-BOM-PNP.py
- name: Checkout pcb-tools repo
uses: actions/checkout@v3
with:
repository: sainquake/pcb-tools
path: repo/scripts/pcb-tools

- name: All other tests that can be added in future
- name: pcb-tools-test
run: |
cd repo && pip install steputils && python pcb-versions/test-other.py
cd repo && pip install pytest && pytest -v
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ Status Report.Txt
*.htm
*.html
~*
pcb-versions/
paths.json
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "scripts/pcb-tools"]
path = scripts/pcb-tools
url = https://github.com/sainquake/pcb-tools
[submodule "scripts/pcb-versions"]
path = scripts/pcb-versions
url = https://github.com/RaccoonLabHardware/pcb-versions.git
Binary file modified Project Outputs/BOM/Bill of Materials-BOM.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/pcb-tools
Submodule pcb-tools updated 3 files
+2 −0 .gitignore
+13 −2 README.md
+390 −0 test_pcb.py
1 change: 1 addition & 0 deletions scripts/pcb-versions
Submodule pcb-versions added at 99fbd7

0 comments on commit 29f84d9

Please sign in to comment.