chore(deps): bump types-requests from 2.31.0.1 to 2.31.0.20240106 #353
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
lint-and-test: | |
name: Lint and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
poetry-version: ['1.3.2'] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install dependencies | |
run: | | |
poetry install --sync --all-extras --with dev | |
- name: Lint with black | |
run: | | |
poetry run black ./src --check | |
- name: Lint with mypy | |
run: | | |
poetry run mypy ./src | |
- name: Lint with flake8 | |
run: | | |
poetry run flake8 ./src | |
- name: Lint with isort | |
run: | | |
poetry run isort ./src --check | |
- name: Check poetry lock file | |
run: | | |
poetry lock --check | |
release: | |
name: Release | |
env: | |
DIST_ARCHIVE_NAME: ${{ github.event.repository.name }}-dist | |
runs-on: ${{ matrix.os }} | |
needs: [lint-and-test] | |
if: startsWith(github.ref, 'refs/tags/') | |
strategy: | |
matrix: | |
python-version: ['3.7'] | |
poetry-version: ['1.3.2'] | |
os: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) | |
- name: Build changelog | |
id: build_changelog | |
uses: mikepenz/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
configuration: '.github/config/changelog_configuration.json' | |
ignorePreReleases: 'false' | |
- name: Package release | |
uses: papeloto/action-zip@v1 | |
with: | |
files: ./ | |
recursive: false | |
dest: ${{ env.DIST_ARCHIVE_NAME }}-${{ steps.get_version.outputs.VERSION }}.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: ${{steps.build_changelog.outputs.changelog}} | |
files: | | |
${{ env.DIST_ARCHIVE_NAME }}-${{ steps.get_version.outputs.VERSION }}.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.github_token }} | |
push-release-message: | |
name: Push release message | |
runs-on: ubuntu-latest | |
needs: [release] | |
steps: | |
- name: Push message | |
uses: funnyzak/pushoo-action@main | |
with: | |
platforms: ifttt,wecombot,bark | |
tokens: ${{ secrets.PUSH_TOKEN }} | |
content: | | |
# ${{ github.event.repository.name }} Released | |
## trigger: ${{ github.event_name }} at ${{ github.event.head_commit.timestamp }} | |
## commit message: ${{ github.event.head_commit.message }} | |
## commit url: ${{ github.event.head_commit.url }} | |
## commit author: ${{ github.event.head_commit.author.name }} | |
## commit email: ${{ github.event.head_commit.author.email }} | |
## commit id: ${{ github.event.head_commit.id }} | |
title: | | |
${{ github.repository }} ${{ github.event_name }} Message | |
options: '{"bark": { "url": "https://github.com/${{github.repository}}" }}' | |
debug: false |