Skip to content

Commit

Permalink
uncomment all
Browse files Browse the repository at this point in the history
  • Loading branch information
ejm714 committed Mar 11, 2024
1 parent a1d5995 commit be58fb6
Showing 1 changed file with 65 additions and 65 deletions.
130 changes: 65 additions & 65 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,73 +32,73 @@ jobs:
run: |
make lint
# tests:
# name: Test suite (${{ matrix.os }}, Python ${{ matrix.python-version }})
# needs: code-quality
# runs-on: ${{ matrix.os }}
# env:
# DISTUTILS_USE_SDK: 1 # for MSVC compiler
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest]
# python-version: [3.8, 3.9]

# steps:
# - if: matrix.os == 'ubuntu-latest'
# name: Maximize build space
# uses: easimon/maximize-build-space@master
# with:
# root-reserve-mb: 32000 # for pip packages in /tmp
# remove-dotnet: true
# remove-android: true
# remove-haskell: true
# remove-codeql: true

# - uses: actions/checkout@v4

# - name: Setup FFmpeg
# uses: Iamshankhadeep/[email protected]
# with:
# # Not strictly necessary, but it may prevent rate limit
# # errors especially on GitHub-hosted macos machines.
# token: ${{ secrets.GITHUB_TOKEN }}
# version: "4.4"

# - name: Configure Windows compilers
# uses: ilammy/msvc-dev-cmd@v1

# - name: Set up Python and uv
# uses: drivendataorg/setup-python-uv-action@v1
# with:
# python-version: ${{ matrix.python-version }}

# - name: Install dependencies
# run: |
# uv pip install -e .[tests]

# - name: Run tests
# run: |
# make tests

# - name: Run densepose tests
# env:
# ZAMBA_RUN_DENSEPOSE_TESTS: 1
# run: |
# uv pip install flit-core
# # torch is alread installed, so just add the densepose extra
# uv pip install -e .[densepose] --no-build-isolation
# make densepose-tests

# - name: Upload coverage to codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage.xml
# fail_ci_if_error: true
tests:
name: Test suite (${{ matrix.os }}, Python ${{ matrix.python-version }})
needs: code-quality
runs-on: ${{ matrix.os }}
env:
DISTUTILS_USE_SDK: 1 # for MSVC compiler
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.9]

steps:
- if: matrix.os == 'ubuntu-latest'
name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 32000 # for pip packages in /tmp
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true

- uses: actions/checkout@v4

- name: Setup FFmpeg
uses: Iamshankhadeep/[email protected]
with:
# Not strictly necessary, but it may prevent rate limit
# errors especially on GitHub-hosted macos machines.
token: ${{ secrets.GITHUB_TOKEN }}
version: "4.4"

- name: Configure Windows compilers
uses: ilammy/msvc-dev-cmd@v1

- name: Set up Python and uv
uses: drivendataorg/setup-python-uv-action@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
uv pip install -e .[tests]
- name: Run tests
run: |
make tests
- name: Run densepose tests
env:
ZAMBA_RUN_DENSEPOSE_TESTS: 1
run: |
uv pip install flit-core
# torch is alread installed, so just add the densepose extra
uv pip install -e .[densepose] --no-build-isolation
make densepose-tests
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: true

test-install:
name: Test install from built distributions
# needs: tests
needs: tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
notify:
name: Notify failed build
# needs: [code-quality, tests, test-install]
needs: [code-quality, tests, test-install]
if: failure() && (github.event_name == 'push' || github.event_name == 'schedule')
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit be58fb6

Please sign in to comment.