resolve build dependency conflict for urllib3, unify python version to 3.9.13 #26
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 tests on PRs and commits | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| env: | |
| BOT_ID: 916ccfd76a7fda25c74d09e1d5 | |
| LEAGUE_ID: 164483 | |
| TEST_TAG: user/test_build:test | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - name: Build container | |
| uses: docker/build-push-action@v2 | |
| with: | |
| push: false | |
| context: . | |
| load: true | |
| tags: ${{ env.TEST_TAG }} | |
| - name: Run image against tests | |
| run: | | |
| docker run ${{ env.TEST_TAG }} /bin/sh -c "\ | |
| python -m pip install --upgrade pip && \ | |
| pip install -r requirements.txt && \ | |
| pip install -r requirements-test.txt && \ | |
| pytest" |