diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml deleted file mode 100644 index 9b9aae1e..00000000 --- a/.github/workflows/packaging.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Check Packaging - -on: [push, pull_request] - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - run: python -m pip install . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 436d388d..5322468d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,61 +15,57 @@ jobs: - uses: actions/checkout@v4 with: submodules: 'recursive' - - name: Install EGL mesa - required for Panda3D renderer - run: | - sudo apt-get update -y -qq - sudo apt-get install -y -qq libegl1-mesa libegl1-mesa-dev - - - name: Setup conda - uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: happypose - python-version: ${{ matrix.python-version }} - miniforge-variant: Mambaforge - miniforge-version: latest - use-mamba: true - - - name: Get date for caching, reset cache every day - id: get-date - run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')" - shell: bash - - - name: Cashing of the happypose installation - uses: actions/cache@v3 - with: - path: ${{ env.CONDA }}/envs - key: - conda-${{ runner.os }}--${{ runner.arch }}--${{steps.get-date.outputs.today }}-${{hashFiles('environment.yml') }}-${{env.CACHE_NUMBER }} - env: - # Increase this value to reset cache manually - CACHE_NUMBER: 0 - id: cache - - - name: Update conda environment with happypose dependencies - run: - mamba env update -n happypose -f environment.yml - if: steps.cache.outputs.cache-hit != 'true' - - - name: Install bop toolkit (temporal fix) - run: | - cd happypose/pose_estimators/megapose/deps/bop_toolkit_challenge/ -# mkdir libs -# cd libs -# git clone https://github.com/ylabbe/bop_toolkit/ -b dataset-tools -# cd bop_toolkit - sed 's/==.*$//' requirements.txt > req_nover.txt - pip install -r req_nover.txt -e . - if: steps.cache.outputs.cache-hit != 'true' - - - name: Install happypose - run: | - cd happypose/pose_estimators/cosypose -# python setup.py install - pip install . - cd ../../.. - pip install -e . - - name: Run tests - run: | - pip install pytest coverage - coverage run -m pytest tests - - uses: codecov/codecov-action@v3 +# - name: Install EGL mesa - required for Panda3D renderer +# run: | +# sudo apt-get update -y -qq +# sudo apt-get install -y -qq libegl1-mesa libegl1-mesa-dev +# +# - name: Setup conda +# uses: conda-incubator/setup-miniconda@v2 +# with: +# activate-environment: happypose +# python-version: ${{ matrix.python-version }} +# miniforge-variant: Mambaforge +# miniforge-version: latest +# use-mamba: true +# +# - name: Get date for caching, reset cache every day +# id: get-date +# run: echo "::set-output name=today::$(/bin/date -u '+%Y%m%d')" +# shell: bash +# +# - name: Cashing of the happypose installation +# uses: actions/cache@v3 +# with: +# path: ${{ env.CONDA }}/envs +# key: +# conda-${{ runner.os }}--${{ runner.arch }}--${{steps.get-date.outputs.today }}-${{hashFiles('environment.yml') }}-${{env.CACHE_NUMBER }} +# env: +# # Increase this value to reset cache manually +# CACHE_NUMBER: 0 +# id: cache +# +# - name: Update conda environment with happypose dependencies +# run: +# mamba env update -n happypose -f environment.yml +# if: steps.cache.outputs.cache-hit != 'true' +# +# - name: Install bop toolkit (temporal fix) +# run: | +# cd happypose/pose_estimators/megapose/deps/bop_toolkit_challenge/ +# sed 's/==.*$//' requirements.txt > req_nover.txt +# pip install -r req_nover.txt -e . +# if: steps.cache.outputs.cache-hit != 'true' +# +# - name: Install happypose +# run: | +# cd happypose/pose_estimators/cosypose +# pip install . +# cd ../../.. +# pip install -e . +# +# - name: Run tests +# run: | +# pip install pytest coverage +# coverage run -m pytest tests +# - uses: codecov/codecov-action@v3