From 64229bbeeeaa3219a13aa427473de67546b9256a Mon Sep 17 00:00:00 2001 From: Antony Lewis Date: Tue, 20 Aug 2024 22:29:49 +0100 Subject: [PATCH] action --- .github/workflows/tests.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 775d856..b19372e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.12", "3.13"] + - name: "Latest Python 3.12" + os: ubuntu-latest + python-version: 3.12 + - name: "OS X Python 3.8" + os: macos-latest + python-version: 3.8 + - name: "Windows Python 3.8" + os: windows-latest + python-version: 3.8 steps: - uses: actions/checkout@v4 @@ -20,16 +28,20 @@ jobs: python-version: ${{ matrix.python-version }} allow-prereleases: true + - name: flake8 Lint + if: matrix.os == 'ubuntu-latest' + uses: py-actions/flake8@v2 + with: + args: --select=E713,E704,E703,E714,E10,E11,E20,E22,E23,E25,E27,E301,E302,E304,E9,F405,F406,F5,F6,F7,F8,W1,W2,W3,W6 --show-source --statistics + path: getdist + max-line-length: "120" + - name: Install dependencies run: | python --version - pip install . PyYAML flake8 + pip install . git clone --depth=1 https://github.com/cmbant/getdist_testchains - - name: Run flake8 - run: | - flake8 getdist --select=E713,E704,E703,E714,E10,E11,E20,E22,E23,E25,E27,E301,E302,E304,E9,F405,F406,F5,F6,F7,F8,W1,W2,W3,W6 --show-source --statistics - - name: Run tests run: | getdist --help