Add main library code and examples #33
Workflow file for this run
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: Python CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
release: | |
types: [created] | |
workflow_dispatch: | |
jobs: | |
# validation: | |
# uses: microsoft/action-python/.github/workflows/[email protected] | |
# with: | |
# workdir: '.' | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ruff>=0.2.0 mypy==1.9.0 | |
# Update output format to enable automatic inline annotations. | |
- name: Run Ruff | |
run: ruff check --output-format=github . | |
- name: Run Ruff Format | |
run: ruff format --check --output-format=github . | |
- name: Run Mypy | |
run: mypy --ignore-missing-imports . | |
# publish: | |
# uses: microsoft/action-python/.github/workflows/[email protected] | |
# secrets: | |
# PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
# TEST_PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} |