From 6e133ce6b8ca1b558c2077e88f060fba4e9656b8 Mon Sep 17 00:00:00 2001 From: konstantin Date: Mon, 1 Nov 2021 15:41:16 +0100 Subject: [PATCH 1/3] run all actions on python 3.10 --- .github/workflows/black.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/linting.yml | 2 +- .github/workflows/tests.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 12235d39f..2cfb31f83 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -6,7 +6,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.9] + python-version: ["3.10"] os: [ubuntu-latest] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 76f07cbb9..b469bfd60 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,7 +6,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.9] + python-version: ["3.10"] os: [ubuntu-latest] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index df55b62d5..be77820e5 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -6,7 +6,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ 3.8 ] + python-version: [ "3.8", "3.9", "3.10" ] os: [ ubuntu-latest ] linter-env: ["linting", "type_check"] steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e393ae5cf..44a95d13f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ 3.8 ] + python-version: [ "3.8", "3.9", "3.10" ] os: [ ubuntu-latest ] steps: - uses: actions/checkout@v2 From e7960c1a2cf6d17d2ef0f3eeb42b3d793f53c60c Mon Sep 17 00:00:00 2001 From: konstantin Date: Mon, 1 Nov 2021 15:42:24 +0100 Subject: [PATCH 2/3] linting 3.10 only --- .github/workflows/linting.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index be77820e5..59490083f 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -6,7 +6,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ "3.8", "3.9", "3.10" ] + python-version: [ "3.10" ] os: [ ubuntu-latest ] linter-env: ["linting", "type_check"] steps: From cdf7025cde5e78ef2453b5be895c0e2e6b3abd3f Mon Sep 17 00:00:00 2001 From: konstantin Date: Mon, 1 Nov 2021 15:48:13 +0100 Subject: [PATCH 3/3] prettier workflow files --- .github/workflows/codeql-analysis.yml | 58 +++++++++++++-------------- .github/workflows/linting.yml | 6 +-- .github/workflows/python-publish.yml | 6 +-- .github/workflows/tests.yml | 6 +-- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 296327629..5f166bff1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,12 +13,12 @@ name: "CodeQL" on: push: - branches: [ develop, master ] + branches: [develop, master] pull_request: # The branches below must be a subset of the branches above - branches: [ develop ] + branches: [develop] schedule: - - cron: '20 18 * * 4' + - cron: "20 18 * * 4" jobs: analyze: @@ -32,40 +32,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'python' ] + language: ["python"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v1 - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language + # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language - #- run: | - # make bootstrap - # make release + #- run: | + # make bootstrap + # make release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 59490083f..796ce72ee 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -1,13 +1,13 @@ name: "Linting" -on: [ push ] +on: [push] jobs: linting: name: Python Code Quality and Lint runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ "3.10" ] - os: [ ubuntu-latest ] + python-version: ["3.10"] + os: [ubuntu-latest] linter-env: ["linting", "type_check"] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 7ce56dd36..e1a020283 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -6,15 +6,15 @@ name: Upload Python Package on: release: branches: master - types: [ created, edited ] + types: [created, edited] jobs: tests: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ 3.8 ] - os: [ ubuntu-latest ] + python-version: [3.8] + os: [ubuntu-latest] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 44a95d13f..d59cc39d3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,13 +1,13 @@ name: Tests -on: [ push ] +on: [push] jobs: tests: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ "3.8", "3.9", "3.10" ] - os: [ ubuntu-latest ] + python-version: ["3.8", "3.9", "3.10"] + os: [ubuntu-latest] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }}