diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ccd020109e1..12258c102dc 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -32,7 +32,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7] + python-version: [3.8] test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}} steps: - uses: actions/checkout@v2.5.0 @@ -69,7 +69,7 @@ jobs: files: "coverage.xml" - name: Upload coverage from test to Codecov uses: codecov/codecov-action@v3.1.1 - if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' + if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8' with: file: coverage.xml flags: ${{ steps.test.outputs.codecov_flag }} @@ -82,7 +82,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7] + python-version: [3.8] test-path: ${{fromJson(needs.prep-testbed.outputs.matrix-oldproto)}} steps: - uses: actions/checkout@v2 @@ -120,7 +120,7 @@ jobs: files: "coverage.xml" - name: Upload coverage from test to Codecov uses: codecov/codecov-action@v2 - if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' + if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8' with: file: coverage.xml flags: ${{ steps.test.outputs.codecov_flag }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6996e768b45..3ddbe6ff1d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,10 +52,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.5.0 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: 3.8 - name: Lint with flake8 run: | pip install flake8 @@ -70,10 +70,10 @@ jobs: - uses: actions/checkout@v2.5.0 with: fetch-depth: 0 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: 3.8 - id: file_changes uses: Ana06/get-changed-files@v1.2 - name: check black @@ -89,11 +89,11 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.sha }} - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v4 if: ${{ !github.event.pull_request.head.repo.fork }} with: - python-version: 3.7 + python-version: 3.8 - name: Styling id: styling if: ${{ !github.event.pull_request.head.repo.fork }} @@ -124,12 +124,15 @@ jobs: import-test: runs-on: ubuntu-latest + strategy: + matrix: + python-env: ['3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v2.5.0 - - name: Set up Python 3.7 + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: ${{ matrix.python-env }} - name: Prepare enviroment run: | python -m pip install --upgrade pip @@ -160,7 +163,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7] + python-version: [3.8] test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}} steps: - uses: actions/checkout@v2.5.0 @@ -197,7 +200,7 @@ jobs: files: "coverage.xml" - name: Upload coverage from test to Codecov uses: codecov/codecov-action@v3.1.1 - if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' + if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8' with: file: coverage.xml flags: ${{ steps.test.outputs.codecov_flag }} @@ -210,7 +213,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7] + python-version: [3.8] test-path: ${{fromJson(needs.prep-testbed.outputs.matrix-oldproto)}} steps: - uses: actions/checkout@v2 @@ -248,7 +251,7 @@ jobs: files: "coverage.xml" - name: Upload coverage from test to Codecov uses: codecov/codecov-action@v2 - if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.7' + if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8' with: file: coverage.xml flags: ${{ steps.test.outputs.codecov_flag }}