Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 20, 2024
1 parent 494cc33 commit 64229bb
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 64229bb

Please sign in to comment.