chore(deps): update dependency flake8 to v7 #1713
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: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
# TODO faudra git fetch le head | |
renovate: | |
name: Renovate | |
runs-on: ubuntu-latest | |
concurrency: renovate | |
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha') && (github.event_name == 'push' || github.event_name == 'pull_request') && !contains(github.event.head_commit.message, 'chore(deps):') | |
steps: | |
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc | |
- uses: ./.github/actions/renovate | |
dependencies: | |
name: Install Dependencies | |
needs: [renovate] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc | |
- uses: ./.github/actions/cache | |
quality: | |
name: Quality | |
needs: [dependencies] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc | |
- uses: ./.github/actions/cache | |
- uses: ./.github/actions/pre-commit | |
- uses: ./.github/actions/bandit | |
- uses: ./.github/actions/pylama | |
tests: | |
name: Coverage | |
needs: [dependencies] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc | |
- uses: ./.github/actions/cache | |
- uses: ./.github/actions/coverage # TODO réparer cette fonction | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
concurrency: release | |
needs: [dependencies, quality, tests] | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' && !contains(github.event.head_commit.message, 'chore(release):') | |
steps: | |
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- uses: ./.github/actions/cache | |
- uses: ./.github/actions/semantic-release | |
# TODO continuer ça | |
# - name: Configure git | |
# run: | | |
# git config user.name github-actions | |
# git config user.email | |
# - name: Run python semantic release | |
# run: | | |
# poetry run semantic-release changelog --post | |
# poetry run semantic-release version | |
# - name: Publish semver | |
# run: poetry run semantic-release publish | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# # PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
# # semantic |