chore(deps-dev): bump pytest-mypy from 0.10.3 to 1.0.1 (#278) #411
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: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| Quality: | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
| os: [ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Python Poetry | |
| uses: abatilo/actions-poetry@v2 | |
| with: | |
| poetry-version: 1.8.2 | |
| - name: Configure poetry | |
| shell: bash | |
| run: python -m poetry config virtualenvs.in-project true | |
| - name: View poetry version | |
| run: poetry --version | |
| - name: Install dependencies | |
| run: | | |
| python -m poetry install | |
| - name: Run check | |
| run: make test | |
| - name: Run complexity baseline | |
| run: make complexity | |
| Release: | |
| needs: Quality | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):') | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/p/pull-request-codecommit | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Python Semantic Release | |
| id: semantic-release | |
| uses: python-semantic-release/python-semantic-release@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check if PyPi release required | |
| id: has-dist-folder | |
| run: |- | |
| if [ -d ./dist/ ]; then | |
| echo "folder_exists=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "folder_exists=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Publish package distributions to PyPI | |
| if: steps.has-dist-folder.outputs.folder_exists == 'true' | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_TOKEN }} |