From 181653ad68d1c22c68f7498299e09b071e108b3c Mon Sep 17 00:00:00 2001 From: Alexandre Teles Date: Fri, 30 Sep 2022 19:52:35 -0300 Subject: [PATCH] fix: use correct py version for workflows --- .github/workflows/codeql_analysis.yml | 15 ++++++--------- .github/workflows/dev.yml | 3 ++- .github/workflows/features.yml | 3 ++- .github/workflows/mypy.yml | 2 +- .github/workflows/pull_requests.yml | 5 +++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml index 3d77560..eb905f0 100644 --- a/.github/workflows/codeql_analysis.yml +++ b/.github/workflows/codeql_analysis.yml @@ -2,17 +2,15 @@ name: "CodeQL" on: push: - branches: [ "main", "dev" ] + branches: [ "dev" ] pull_request: - branches: [ "main", "dev" ] + branches: [ "dev" ] schedule: - cron: '21 13 * * 3' workflow_dispatch: - inputs: - branch: - description: 'Custom branch' - required: false - default: '' + +env: + default_branch: dev jobs: analyze: @@ -31,9 +29,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - if: github.event_name == 'workflow_dispatch' && github.event.inputs.branch != '' with: - ref: ${{ inputs.branch }} + ref: ${{ env.default_branch }} - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 938d679..b6e2210 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Python 3.10.6 uses: actions/setup-python@v1 with: - python-version: 3.10.6 + python-version: 3.10.7 - name: Lint with flake8 run: | pip install flake8 flake8-html @@ -49,6 +49,7 @@ jobs: path: . build: + needs: security_checks runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index d0a2df1..3cc6d83 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v1 with: - python-version: 3.10 + python-version: 3.10.7 - name: Lint with flake8 run: | pip install flake8 flake8-html @@ -50,6 +50,7 @@ jobs: path: . build: + needs: security_checks runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 922f009..a2eede7 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v1 with: - python-version: 3.10.6 + python-version: 3.10.7 architecture: x64 - name: Checkout uses: actions/checkout@v1 diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 73d3c64..29cc7f0 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up Python 3.10.6 + - name: Set up Python 3.10.7 uses: actions/setup-python@v1 with: - python-version: 3.10.6 + python-version: 3.10.7 - name: Lint with flake8 run: | pip install flake8 flake8-html @@ -45,6 +45,7 @@ jobs: path: . build: + needs: security_checks runs-on: ubuntu-latest permissions: contents: read