Add track number to split files (per #4) #30
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: Test Python Application | |
| on: | |
| push: | |
| branches: "**" | |
| pull_request: | |
| branches: [ "dev", "stable" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint (Flake8) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 flake8-bugbear flake8-docstrings flake8-import-order flake8-colors pep8-naming | |
| - name: Lint with flake8 | |
| run: | | |
| # Run a quick check for obvious issues python syntax errors or undefined names | |
| flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # Now run the full flake check | |
| flake8 . --count --statistics | |
| test: | |
| name: Test Python ${{ matrix.py }} - ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }}-latest | |
| needs: lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - Ubuntu | |
| - Windows | |
| py: | |
| - "3.12" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.py }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.py }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pytest-cov . | |
| - name: Setup ffmpeg | |
| uses: FedericoCarboni/setup-ffmpeg@v3 | |
| id: setup-ffmpeg | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov --cov-report term-missing --cov-fail-under=100 --cov-config pyproject.toml |