Skip to content

Commit

Permalink
TST: error in linting setup and deprecation warning
Browse files Browse the repository at this point in the history
there is deprecation warning stemming from dash-testing that they need to handle.
  • Loading branch information
scott-huberty committed Sep 1, 2023
1 parent faa6948 commit 1817512
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 35 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/check_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ jobs:
name: Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: psf/black@stable
- uses: pre-commit/[email protected]
- name: Install dependencies
run: pip install -r requirements_testing.txt
# Run Ruff
- name: Run Ruff
run: ruff pylossless
# Run Codespell
- name: Run Codespell
run: codespell pylossless docs
- uses: actions/checkout@v3
with:
python-version: "3.11"
- uses: psf/black@stable
- uses: pre-commit/[email protected]
- name: Install dependencies
run: pip install -r requirements_testing.txt
# Run Ruff
- name: Run Ruff
run: ruff pylossless
# Run Codespell
- name: Run Codespell
run: codespell pylossless docs
46 changes: 26 additions & 20 deletions .github/workflows/test_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
name: Test pipeline

on: pull_request
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Pylossless & Deps
run: pip install -e .
- name: Install testing dependencies
run: pip install -r requirements_testing.txt
- name: Install QC depedencies
run: pip install -r requirements_qc.txt
- name: install openneuro
run: pip install openneuro-py
- name: Test Pipeline
run: |
coverage run -m pytest
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Pylossless & Deps
run: pip install -e .
- name: Install testing dependencies
run: pip install -r requirements_testing.txt
- name: Install QC depedencies
run: pip install -r requirements_qc.txt
- name: install openneuro
run: pip install openneuro-py
- name: Test Pipeline
run: |
coverage run -m pytest
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ exclude = "(dist/)|(build/)|(.*\\.ipynb)" # Exclude build artifacts and notebook
[tool.pytest.ini_options]
filterwarnings = ["error",
# error on warning except the non-int sample freq warning, which we want to be raised
'ignore:The Raw sampling frequency is',]
'ignore:The Raw sampling frequency is',
# deprecation in dash-testing that needs to be reported
'HTTPResponse.getheader() is deprecated',]

0 comments on commit 1817512

Please sign in to comment.