Skip to content

[pull] main from Byaidu:main #25

[pull] main from Byaidu:main

[pull] main from Byaidu:main #25

Workflow file for this run

name: Build Python Package
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build flake8 black
- name: Check code format
run: |
black --check --diff --color pdf2zh/*.py
flake8 --ignore E203,E261,E501,W503,E741
- name: Build package
run: python -m build