-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
65 additions
and
65 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|