Skip to content

Merge pull request #13 from frank1010111/pre-commit-ci-update-config #49

Merge pull request #13 from frank1010111/pre-commit-ci-update-config

Merge pull request #13 from frank1010111/pre-commit-ci-update-config #49

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- main
- develop
release:
types:
- published
jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v3
- uses: pre-commit/action@v2.0.3
with:
extra_args: --hook-stage manual --all-files
# dist:
# name: Distribution build
# runs-on: ubuntu-latest
# needs: [pre-commit]
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Build sdist and wheel
# run: pipx run build
# - uses: actions/upload-artifact@v3
# with:
# path: dist
# - name: Check products
# run: pipx run twine check dist/*
# - uses: pypa/gh-action-pypi-publish@v1.5.0
# if: github.event_name == 'release' && github.event.action == 'published'
# with:
# user: __token__
# # Remember to generate this and set it in "GitHub Secrets"
# password: ${{ secrets.pypi_password }}
# # Remove this line
# repository_url: https://test.pypi.org/legacy/