Skip to content

Commit

Permalink
[FIX] Update Github CI workflow on push
Browse files Browse the repository at this point in the history
  • Loading branch information
hollydinkel committed Aug 4, 2023
1 parent 81a1a14 commit ba7aa36
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand All @@ -24,16 +24,19 @@ 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
- name: Install dependencies with pip
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
Expand Down

0 comments on commit ba7aa36

Please sign in to comment.