Skip to content

Commit

Permalink
Fix GitHub CI to prevent mypy errors (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
creafz committed Oct 15, 2021
1 parent 0173bfa commit 4e57c83
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
operating-system: [ubuntu-latest, windows-latest, macos-11]
python-version: [3.6, 3.7, 3.8, 3.9]
albumentations-version: [tests, develop]
fail-fast: false
Expand All @@ -20,6 +20,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install wheel
run: python -m pip install --upgrade wheel
- name: Install PyTorch on Linux and Windows
if: >
matrix.operating-system == 'ubuntu-latest' ||
Expand All @@ -34,6 +36,10 @@ jobs:
run: pip install .[${{ matrix.albumentations-version }}]
- name: Install linters
run: pip install flake8==3.9.2 flake8-docstrings==1.6.0 mypy==0.910 isort==5.9.3 types-PyYAML==5.4.10 types-setuptools
- name: Cleanup the build directory
uses: JesseTG/rm@v1.0.2
with:
path: build
- name: Run PyTest
run: pytest
- name: Run Flake8
Expand Down

0 comments on commit 4e57c83

Please sign in to comment.