Fix GPU Discovery. (#4522) #218
This file contains 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
# Build Docker files from scratch after each commit to master. | |
# We do this in case there are any issues with the Dockerfiles | |
# that were missed in the Test CI pipelines by Docker caching. | |
name: Postcommit | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: [rest-server, worker, frontend] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
pip- | |
- run: pip install -r requirements.txt | |
- run: python3 codalab_service.py build |