Skip to content

Commit

Permalink
Use precommit hooks for linting and don't do the coveralls thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem committed Sep 10, 2024
1 parent 78f02f1 commit 5829bae
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,9 @@ jobs:
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install coveralls
python -m pip install .[all]
python -m pip install https://github.com/bboe/coveralls-python/archive/github_actions.zip
- name: Lint
run: |
flake8
black --check --verbose .
pydocstyle
- name: Install and run pre-commit hooks
uses: pre-commit/[email protected]
- name: Test
run: |
cd && mkdir for_test && cd for_test && pytest --pyargs afqinsight --cov-report term-missing --cov=afqinsight
- name: Coveralls
run: |
coveralls
if: matrix.python-version == 3.10
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5829bae

Please sign in to comment.