Refactor to support duplicate tokens #106
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: Codebase tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Free Disk Space (Ubuntu) | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| with: | |
| tool-cache: false | |
| android: true | |
| dotnet: true | |
| haskell: true | |
| large-packages: true | |
| docker-images: true | |
| swap-storage: false | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11.5 | |
| - name: Run Tests | |
| run: | | |
| python -m venv venv | |
| source venv/bin/activate | |
| pip install -e .[test] | |
| pytest tests --cov=genlm/bytes --cov-report=json | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: false | |
| disable_search: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.json | |
| slug: genlm/genlm-bytes |