init comit #1
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: PR Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements-test.txt | |
| - name: Run linting | |
| run: | | |
| python -m pip install flake8 | |
| flake8 pdf2mp3_gui.py --max-line-length=120 --ignore=E203,W503 || true | |
| - name: Run unit tests | |
| run: | | |
| pytest tests/ -v --cov=pdf2mp3_gui --cov-report=xml --cov-report=term | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| file: ./coverage.xml | |
| flags: unittests | |
| name: codecov-umbrella | |
| continue-on-error: true | |
| - name: Test app builds | |
| run: | | |
| python -m pip install py2app | |
| python setup.py py2app | |
| test -d dist/TextWave.app |