Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Dec 30, 2023
1 parent 7438457 commit fb989aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,24 @@ jobs:

- if: matrix.os == 'ubuntu-latest' # for condition steps, you should put if at begin, and use single quote for logical expression
name: "Install dependencies on MacOS or Linux"
with:
attrs-version: "${{ matrix.attrs-version }}"
run: |
set -xe
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel virtualenv
pip install -r attrs==${{ matrix.attrs-version }}
pip install -r attrs==${{ attrs-version }}
pip install -r requirements-test.txt
pip install .
- if: matrix.os == 'windows-latest'
name: "Install dependencies on Windows"
with:
attrs-version: "${{ matrix.attrs-version }}"
run: |
python -m site
python -m pip install --upgrade pip setuptools wheel virtualenv
pip install -r attrs==${{ matrix.attrs-version }}
pip install -r attrs==${{ attrs-version }}
pip install -r requirements-test.txt
pip install .
- name: "Run pytest"
Expand Down

0 comments on commit fb989aa

Please sign in to comment.