| 
1 |  | -name: Unit Tests  | 
 | 1 | +# name: Unit Tests  | 
2 | 2 | 
 
  | 
3 |  | -on:  | 
4 |  | -  pull_request:  | 
5 |  | -  push:  | 
6 |  | -    branches: [ main ]  | 
7 |  | -  workflow_dispatch:  | 
 | 3 | +# on:  | 
 | 4 | +#   pull_request:  | 
 | 5 | +#   push:  | 
 | 6 | +#     branches: [ main ]  | 
 | 7 | +#   workflow_dispatch:  | 
8 | 8 | 
 
  | 
9 |  | -jobs:  | 
10 |  | -  unit_tests:  | 
11 |  | -    runs-on: ubuntu-latest  | 
12 |  | -    timeout-minutes: 15  | 
13 |  | -    strategy:  | 
14 |  | -      matrix:  | 
15 |  | -        python-version: ['3.10']  | 
16 |  | -    steps:  | 
17 |  | -      - name: Check out repo  | 
18 |  | -        uses: actions/checkout@v4  | 
19 |  | -      - name: Setup conda env  | 
20 |  | -        uses: conda-incubator/setup-miniconda@v2  | 
21 |  | -        with:  | 
22 |  | -          auto-update-conda: true  | 
23 |  | -          miniconda-version: "latest"  | 
24 |  | -          activate-environment: test  | 
25 |  | -          python-version: ${{ matrix.python-version }}  | 
26 |  | -          auto-activate: false  | 
27 |  | -      # - name: Update pip  | 
28 |  | -      #   run: python -m pip install --upgrade pip  | 
29 |  | -      - name: Install torchforge  | 
30 |  | -        run: ./scripts/install.sh  | 
31 |  | -      - name: Run unit tests with coverage  | 
32 |  | -        # TODO add all tests  | 
33 |  | -        run: pytest tests/unit_tests --cov=. --cov-report=xml --durations=20 -vv  | 
34 |  | -      - name: Upload Coverage to Codecov  | 
35 |  | -        uses: codecov/codecov-action@v3  | 
 | 9 | +# jobs:  | 
 | 10 | +#   unit_tests:  | 
 | 11 | +#     runs-on: ubuntu-latest  | 
 | 12 | +#     timeout-minutes: 15  | 
 | 13 | +#     strategy:  | 
 | 14 | +#       matrix:  | 
 | 15 | +#         python-version: ['3.10']  | 
 | 16 | +#     steps:  | 
 | 17 | +#       - name: Check out repo  | 
 | 18 | +#         uses: actions/checkout@v4  | 
 | 19 | +#         with:  | 
 | 20 | +#           fetch-depth: 0  | 
 | 21 | +#       - name: Setup conda env  | 
 | 22 | +#         uses: conda-incubator/setup-miniconda@v2  | 
 | 23 | +#         with:  | 
 | 24 | +#           auto-update-conda: true  | 
 | 25 | +#           miniconda-version: "latest"  | 
 | 26 | +#           activate-environment: test  | 
 | 27 | +#           python-version: '3.10'  | 
 | 28 | +#           auto-activate: false  | 
 | 29 | +#       - name: Verify conda environment  | 
 | 30 | +#         shell: bash -l {0}  | 
 | 31 | +#         run: |  | 
 | 32 | +#           conda info  | 
 | 33 | +#           which python  | 
 | 34 | +#           which conda  | 
 | 35 | +#       - name: Update pip  | 
 | 36 | +#         shell: bash -l {0}  | 
 | 37 | +#         run: python -m pip install --upgrade pip  | 
 | 38 | +#       - name: Install torchforge  | 
 | 39 | +#         run: ./scripts/install.sh  | 
 | 40 | +#       - name: Run unit tests with coverage  | 
 | 41 | +#         # TODO add all tests  | 
 | 42 | +#         run: pytest tests/unit_tests --cov=. --cov-report=xml --durations=20 -vv  | 
 | 43 | +#       - name: Upload Coverage to Codecov  | 
 | 44 | +#         uses: codecov/codecov-action@v3  | 
0 commit comments