Skip to content

Commit

Permalink
Autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
patnr committed Jul 2, 2024
1 parent 00b9d98 commit 8717c5e
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,26 @@ on:
- dev1
- "!gh-pages"
env:
IS_CI: 'true'
IS_CI: "true"

jobs:

bundled:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ['3.9', '3.10', '3.11', '3.12'] # NB: also see versions for 'conda'
jobtype: ['test']
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"] # NB: also see versions for 'conda'
jobtype: ["test"]
include:
- os: 'ubuntu-latest'
python-version: '3.10'
jobtype: 'lint'
- os: 'ubuntu-latest'
python-version: '3.10'
jobtype: 'coverage'
- os: 'macos-latest'
python-version: '3.10'
jobtype: 'test'
- os: "ubuntu-latest"
python-version: "3.10"
jobtype: "lint"
- os: "ubuntu-latest"
python-version: "3.10"
jobtype: "coverage"
- os: "macos-latest"
python-version: "3.10"
jobtype: "test"
env:
JOBTYPE: ${{ matrix.jobtype }}

Expand All @@ -39,8 +38,8 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'setup.py'
cache: "pip"
cache-dependency-path: "setup.py"

- name: Install dependencies
run: |
Expand All @@ -50,12 +49,12 @@ jobs:
- name: Run tests
run: |
if [[ "$JOBTYPE" == "lint" ]]; then
if [[ '$JOBTYPE' == 'lint' ]]; then
# Run flake8 via pre-commit instead.
#- flake8 . # Use --exit-zero to ignore failure
pre-commit install
pre-commit run --all-files
elif [[ "$JOBTYPE" == "coverage" ]]; then
elif [[ '$JOBTYPE' == 'coverage' ]]; then
pytest tests --ignore=dapper/mods/QG --cov=dapper --cov-report term-missing
else
pytest tests
Expand All @@ -69,18 +68,18 @@ jobs:

conda:
defaults:
run:
shell: bash -el {0}
run:
shell: bash -el {0}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ['3.9', '3.12']
os: ["ubuntu-latest"]
python-version: ["3.9", "3.12"]
include:
- os: 'macos-latest'
python-version: '3.12'
- os: 'windows-latest'
python-version: '3.12'
- os: "macos-latest"
python-version: "3.12"
- os: "windows-latest"
python-version: "3.12"

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 8717c5e

Please sign in to comment.