fix(ci): add pypi token in production publishing (#22) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Code Quality | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "feature/**/**" | |
- "fix/**/**" | |
- "release/v*.*.*" | |
workflow_run: | |
workflows: [CI Build"] | |
types: | |
- completed | |
jobs: | |
code-quality: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install linting dependencies | |
run: | | |
python3 -m pip install --upgrade pip setuptools wheel | |
pip3 install -e .[codequality,extra] | |
- name: Lint with Black | |
run: black --config=pyproject.toml . | |
- name: Lint with Isort | |
run: isort --settings-path=pyproject.toml . | |
- name: Lint with MyPy | |
run: mypy --config-file=pyproject.toml --pretty . |