-
Notifications
You must be signed in to change notification settings - Fork 362
51 lines (48 loc) · 1.73 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: check-all-parts
on: [push, pull_request]
jobs:
python-scripts:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install requirements
run: pip install -r scripts/requirements.txt
- name: Avoid non acsii in part and svg filenames
run: python scripts/checkascii.py .
- name: Check that image filenames use same case
run: python scripts/checkcase.py
- name: Look for suspicious connector numbering
run: python scripts/connectors_misnumbered.py -d .
- name: Avoid duplicate files
run: python scripts/checkcopies.py -d svg
- name: Dry run script to test the script itself
run: python scripts/obsolete.py core/sparkfun-connectors-rca-.fzp dummy -s
- name: Check that SVGs have proper layer ids
run: python scripts/svgNoLayer.py -d svg/core -s scripts/nolayeridcheck.txt
- name: Check that SVGs and FZPs are ASCII or UTF-8
run: python scripts/utf8stats.py . --verbose
golang-scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19.5
- name: Install fzp tool
run: |
go install github.com/fritzing/fzp/bin/fzp@latest
fzp -v
go install github.com/fritzing/fzb/bin/fzb@latest
fzb -version
- name: Fzp validate
run: fzp validate --dir ./core