diff --git a/.github/workflows/build-python-wheels.yml b/.github/workflows/build-python-wheels.yml index 81d4a5f73..f87e234c8 100644 --- a/.github/workflows/build-python-wheels.yml +++ b/.github/workflows/build-python-wheels.yml @@ -23,7 +23,7 @@ jobs: fetch-depth: 0 - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.9' @@ -48,7 +48,7 @@ jobs: fetch-depth: 0 - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.9' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 96eb20e8e..10e0c75f2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -20,9 +20,10 @@ jobs: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 + cache: pip - name: Build and install at run: python -m pip install ".[plot, doc]" diff --git a/.github/workflows/matlab-tests.yml b/.github/workflows/matlab-tests.yml index a48f0ca28..2cdb2f90b 100644 --- a/.github/workflows/matlab-tests.yml +++ b/.github/workflows/matlab-tests.yml @@ -27,9 +27,10 @@ jobs: - uses: actions/checkout@v4 - name: Set up python 3.9 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.9' + cache: pip - name: Set up MATLAB uses: matlab-actions/setup-matlab@v1 diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index f525f5f7b..c37adcdc9 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -27,9 +27,10 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: pip - name: Build and install at with tests run: python -m pip install -e ".[dev]" @@ -39,8 +40,8 @@ jobs: run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + # exit-zero treats all errors as warnings. Options compatible with the 'black' code formatter + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --extend-ignore=E203,E704 --extend-select=W504 --per-file-ignores='*/__init__.py:F401,F403' --statistics - name: Test with pytest and coverage working-directory: pyat