Skip to content

Bump mypy from 1.12.0 to 1.12.1 #82

Bump mypy from 1.12.0 to 1.12.1

Bump mypy from 1.12.0 to 1.12.1 #82

Workflow file for this run

name: CI
on:
merge_group:
push:
branches:
- 'master'
tags: [ 'v*' ]
pull_request:
branches:
- 'master'
permissions: {}
jobs:
lint:
name: Linter
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Install dependencies
uses: py-actions/py-dependency-install@v4
with:
path: requirements.txt
- name: Mypy
run: mypy
- name: Install itself
run: |
pip install .
- name: Prepare twine checker
run: |
pip install -U build twine wheel
python -m build
- name: Run twine checker
run: twine check dist/*
test:
name: Test
strategy:
matrix:
pyver: ['3.11', '3.12', '3.13']
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.pyver }}
uses: actions/setup-python@v5
with:
allow-prereleases: true
python-version: ${{ matrix.pyver }}
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: Install dependencies
uses: py-actions/py-dependency-install@v4
with:
path: requirements.txt
- name: Install itself
run: |
pip install .
- name: Run unittests
run: pytest
env:
COLOR: 'yes'
JUNCTION_API_KEY: ${{ secrets.JUNCTION_API_KEY }}
- run: python -m coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
check: # This job does nothing and is only used for the branch protection
if: always()
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
deploy:
name: Deploy
environment: release
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
needs: [check]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run:
python -m pip install -U pip wheel setuptools build twine
- name: Build dists
run: |
python -m build
- name: PyPI upload
uses: pypa/gh-action-pypi-publish@release/v1
- name: GitHub Release
uses: ncipollo/release-action@v1
with:
name: junction-sdk
artifacts: dist/*
token: ${{ secrets.GITHUB_TOKEN }}