diff --git a/.github/workflows/check_linting.yml b/.github/workflows/check_linting.yml index 4634d9f..743e9e9 100644 --- a/.github/workflows/check_linting.yml +++ b/.github/workflows/check_linting.yml @@ -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/action@v3.0.0 - - 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/action@v3.0.0 + - 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 diff --git a/.github/workflows/test_pipeline.yml b/.github/workflows/test_pipeline.yml index 1eee679..c3552d2 100644 --- a/.github/workflows/test_pipeline.yml +++ b/.github/workflows/test_pipeline.yml @@ -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}} diff --git a/pyproject.toml b/pyproject.toml index f0e14d4..2010250 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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',] \ No newline at end of file +'ignore:The Raw sampling frequency is', + # deprecation in dash-testing that needs to be reported +'HTTPResponse.getheader() is deprecated',] \ No newline at end of file