diff --git a/.github/workflows/env.yaml b/.github/workflows/env.yaml index d0188d3..db722f9 100644 --- a/.github/workflows/env.yaml +++ b/.github/workflows/env.yaml @@ -11,8 +11,8 @@ jobs: strategy: max-parallel: 5 matrix: - os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04] - python-version: ["3.7", "3.8", "3.9", "3.10"] + os: [ubuntu-20.04] + python-version: ["3.9"] runs-on: ${{matrix.os}} @@ -24,8 +24,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Add conda to system path run: | - # $CONDA is an environment variable pointing to the root of the miniconda directory echo $CONDA/bin >> $GITHUB_PATH + - name: Configure Conda + run: | + conda init bash # Replace "bash" with your shell if it's not bash - name: Install dependencies with conda run: | conda env update --file ./config/train_environment.yaml --name base @@ -33,7 +35,8 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint - python -m pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html + pip install flake8 + pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names