chore: add publish workflow (#3216) #6292
  
    
      This file contains hidden or 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: Static Checking | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| Check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.9] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Rust latest | |
| run: rustup update | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install Requirements | |
| run: uv sync --frozen --all-extras --dev --verbose | |
| working-directory: ${{ github.workspace }} | |
| - name: Run ruff format | |
| run: uv run ruff format --check . | |
| working-directory: ${{ github.workspace }} | |
| - name: Run ruff check | |
| run: uv run ruff check --output-format=github . | |
| working-directory: ${{ github.workspace }} | |
| - name: Run mypy check | |
| run: uv run mypy --install-types --non-interactive awswrangler | |
| working-directory: ${{ github.workspace }} | |
| - name: Run documentation check | |
| run: uv run doc8 --max-line-length 120 docs/source | |
| working-directory: ${{ github.workspace }} | |
| - name: Run uv lock check | |
| run: uv lock --check | |
| working-directory: ${{ github.workspace }} |