Skip to content

feat: Use the Manuf Project list #343

feat: Use the Manuf Project list

feat: Use the Manuf Project list #343

Workflow file for this run

name: pymanuf CI (Lint & Test)
on:
push:
branches:
- main
workflow_run:
workflows: ["Update manufacturer file"]
types: [completed]
jobs:
black_formatter:
name: Black Formatter
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Download manuf.txt
run: wget https://raw.githubusercontent.com/kkrypt0nn/manuf/refs/heads/main/manuf.txt -O pymanuf/manuf.txt
- name: Run formatter
uses: rickstaa/action-black@v1
with:
black_args: ". --check"
test:
name: Test
runs-on: ubuntu-latest
needs: [black_formatter]
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Download manuf.txt
run: wget https://raw.githubusercontent.com/kkrypt0nn/manuf/refs/heads/main/manuf.txt -O pymanuf/manuf.txt
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test
run: python -m unittest discover tests