remove gist badges (#95) #260
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: Run unit tests with coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| - name: Install dependencies | |
| run: | | |
| poetry install | |
| - name: Make data | |
| run: | | |
| poetry run python -m codex.data.local_data_loader | |
| - name: Run tests | |
| run: | | |
| poetry run python -m tests.run_unit_tests_with_coverage | |
| - name: Verify action status | |
| if: ${{ env.TESTS_VALUE != 1 }} | |
| uses: actions/github-script@v3 | |
| with: | |
| script: | | |
| core.setFailed('Unit tests not passing.') |