diff --git a/.github/workflows/ets-from-source.yml b/.github/workflows/ets-from-source.yml index 43669ea0..522763f3 100644 --- a/.github/workflows/ets-from-source.yml +++ b/.github/workflows/ets-from-source.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: env: - INSTALL_EDM_VERSION: 3.3.1 + INSTALL_EDM_VERSION: 3.5.0 jobs: @@ -36,15 +36,13 @@ jobs: path: ~/.cache key: ${{ runner.os }}-${{ matrix.runtime }}-${{ hashFiles('etstool.py') }} - name: Setup EDM - uses: enthought/setup-edm-action@v1 + uses: enthought/setup-edm-action@v2 with: edm-version: ${{ env.INSTALL_EDM_VERSION }} - name: Install test environment run: python etstool.py install --runtime=${{ matrix.runtime }} --source - name: Run tests - uses: GabrielBB/xvfb-action@v1 - with: - run: python etstool.py test --runtime=${{ matrix.runtime }} + run: python etstool.py test --runtime=${{ matrix.runtime }} notify-on-failure: needs: test-with-edm diff --git a/.github/workflows/publish-on-pypi.yml b/.github/workflows/publish-on-pypi.yml index 6ba23919..7766f36d 100644 --- a/.github/workflows/publish-on-pypi.yml +++ b/.github/workflows/publish-on-pypi.yml @@ -18,7 +18,6 @@ jobs: python-version: '3.10' - name: Install Python packages needed for build and upload run: | - python -m pip install --upgrade pip python -m pip install build twine - name: Build sdist and wheel run: | diff --git a/.github/workflows/test-with-edm.yml b/.github/workflows/test-with-edm.yml index 47fccba4..8331453c 100644 --- a/.github/workflows/test-with-edm.yml +++ b/.github/workflows/test-with-edm.yml @@ -7,7 +7,7 @@ name: Test with EDM on: [pull_request, workflow_dispatch] env: - INSTALL_EDM_VERSION: 3.3.1 + INSTALL_EDM_VERSION: 3.5.0 jobs: @@ -36,7 +36,7 @@ jobs: path: ~/.cache key: ${{ runner.os }}-${{ matrix.runtime }}-${{ hashFiles('etstool.py') }} - name: Setup EDM - uses: enthought/setup-edm-action@v1 + uses: enthought/setup-edm-action@v2 with: edm-version: ${{ env.INSTALL_EDM_VERSION }} - name: Install test environment @@ -45,6 +45,4 @@ jobs: run: python etstool.py flake8 --runtime=${{ matrix.runtime }} if: startsWith(matrix.os, 'ubuntu') - name: Run tests - uses: GabrielBB/xvfb-action@v1 - with: - run: python etstool.py test --runtime=${{ matrix.runtime }} + run: python etstool.py test --runtime=${{ matrix.runtime }} diff --git a/.github/workflows/test-with-pip.yml b/.github/workflows/test-with-pip.yml index 6dbe224d..35004508 100644 --- a/.github/workflows/test-with-pip.yml +++ b/.github/workflows/test-with-pip.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.6', '3.8', '3.10'] + python-version: ['3.7', '3.8', '3.9', '3.10'] runs-on: ${{ matrix.os }} @@ -22,7 +22,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies and local packages run: | - python -m pip install --upgrade pip python -m pip install .[h5,preferences] - name: Run tests run: | diff --git a/etstool.py b/etstool.py index adc6d17c..1cc352bb 100644 --- a/etstool.py +++ b/etstool.py @@ -303,7 +303,9 @@ def flake8(edm, runtime, environment): "integrationtests", ] commands = [ - "{edm} run -e {environment} -- python -m flake8 " + " ".join(targets) + "{edm} run -e {environment} -- python -m flake8 " + + "--copyright-end-year 2022 " + + " ".join(targets) ] execute(commands, parameters)