Skip to content

Commit

Permalink
Merge pull request matplotlib#27619 from dstansby/reviewdog-action
Browse files Browse the repository at this point in the history
Use GH action to install reviewdog
  • Loading branch information
ksunden authored Jan 17, 2024
2 parents 8da0df9 + 680b70b commit 879bde7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/mypy-stubtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ jobs:
python-version: 3.9

- name: Set up reviewdog
run: |
mkdir -p "$HOME/bin"
curl -sfL \
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
sh -s -- -b "$HOME/bin"
echo "$HOME/bin" >> $GITHUB_PATH
uses: reviewdog/action-setup@v1

- name: Install tox
run: python -m pip install tox
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ jobs:
run: pip3 install -r requirements/testing/flake8.txt

- name: Set up reviewdog
run: |
mkdir -p "$HOME/bin"
curl -sfL \
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
sh -s -- -b "$HOME/bin"
echo "$HOME/bin" >> $GITHUB_PATH
uses: reviewdog/action-setup@v1

- name: Run flake8
env:
Expand All @@ -53,12 +48,7 @@ jobs:
run: pip3 install -r requirements/testing/mypy.txt -r requirements/testing/all.txt

- name: Set up reviewdog
run: |
mkdir -p "$HOME/bin"
curl -sfL \
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
sh -s -- -b "$HOME/bin"
echo "$HOME/bin" >> $GITHUB_PATH
uses: reviewdog/action-setup@v1

- name: Run mypy
env:
Expand Down

0 comments on commit 879bde7

Please sign in to comment.