Skip to content

Commit

Permalink
play with github actions matrix fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
andgineer committed Feb 9, 2022
1 parent d797ad8 commit dd7d732
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
strategy:
matrix:
python-version: [3.8, 3.9]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
Expand All @@ -26,11 +26,11 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
echo ${{ matrix.os }}
echo ${{ runner.os }} ${{ matrix.os }}
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: pre-commit
if: startsWith(matrix.os.lowercase,'ubuntu') # we do not need static code analizes on each platform
if: runner.os == 'Linux' # we do not need static code analizes on each OS, but we want to repeat it on Linux only for each Python version in matrix
run: |
pip install flake8 pylint pre-commit
pre-commit run --all-files
Expand Down

0 comments on commit dd7d732

Please sign in to comment.