Add docker build flow #3
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-deepquant: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Build DeepQuant | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| single-layer-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Build DeepQuant | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Run Tests | |
| run: | | |
| pytest Tests/test_simple_cnn.py | |
| pytest Tests/test_simple_mha.py | |
| pytest Tests/test_simple_nn.py | |
| model-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Build DeepQuant | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Run Tests | |
| run: | | |
| pytest Tests/test_mnist.py |