Skip to content

Commit

Permalink
ci: change os environment from ubuntu to macos in pre-commit check
Browse files Browse the repository at this point in the history
error file path: tensorbay/opendataset/JHU_CROWD/loader.py
pylint will raise cyclic-import error at ubuntu18.04 python3.8.0
and will not raise error at ubuntu20.04 and macos.

pylint related issue:
pylint-dev/pylint#3525
  • Loading branch information
zhen.chen authored and AChenQ committed Mar 16, 2021
1 parent c5b1c1d commit 4756611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-commit.yaml
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
python-version: [3.8.0]
os: [ubuntu-18.04]
os: [macos-10.15]

steps:
- uses: actions/checkout@v2
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Cache python ${{ matrix.python-version }}
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/Python/${{ matrix.python-version }}
path: /Users/runner/hostedtoolcache/Python/${{ matrix.python-version }}
key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}

- name: Set up Python ${{ matrix.python-version }}
Expand Down

0 comments on commit 4756611

Please sign in to comment.