Base functionality, sphinx and PyPi config #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint with flake8 and test with PyTest | |
| on: [pull_request] | |
| jobs: | |
| flake8-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Install testing dependencies | |
| run: | | |
| pip install flake8 pep8-naming pytest pytest-cov | |
| - name: Install package dependencies | |
| run: | | |
| pip install -e . | |
| - name: Run flake8 | |
| run: | | |
| flake8 EEGPhasePy | |
| - name: Run PyTest | |
| run: | | |
| pytest --cov --cov-branch --cov-report=xml | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |