Bump torch from 2.12.0 to 2.13.0 #24
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: python312 | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test-and-coverage: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install project | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev,audio,nltk,transformers]" | |
| - name: Download nltk data | |
| run: | | |
| python - <<'PY' | |
| import nltk | |
| nltk.download("punkt") | |
| nltk.download("punkt_tab") | |
| PY | |
| - name: Run full test suite | |
| run: | | |
| python -m pytest | |
| - name: Run coverage | |
| run: | | |
| python -m pytest --cov=nlpaug --cov-config=.coveragerc --cov-report=term-missing --cov-report=xml:coverage.xml | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report-py${{ matrix.python-version }} | |
| path: coverage.xml |