Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#290 Have github workflows ignore prs/commits made by the all-contributors bot #328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Auto Black

on: [push]
on: [ push ]

jobs:
autoblack:

if: ${{ github.actor != 'all-contributors[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
ref: ${{ github.head_ref }}

- uses: actions/setup-python@v1

Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@

name: Flake8 Lint

on: [push]
on: [ push ]

jobs:
flake8-lint:

if: ${{ github.actor != 'all-contributors[bot]' }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [pypy-3.7]
python-version: [ pypy-3.7 ]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --statistics
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --statistics
8 changes: 4 additions & 4 deletions .github/workflows/profanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: Profanity Check

on:
issues:
types: [opened, edited]
types: [ opened, edited ]
issue_comment:
types: [created, edited]
types: [ created, edited ]
pull_request:
types: [opened, edited]
types: [ opened, edited ]

jobs:
profanity:
if: ${{ github.actor != 'all-contributors[bot]' }}
runs-on: ubuntu-latest

steps:
- name: Profanity filter
uses: radiantly/[email protected]
Expand Down
41 changes: 21 additions & 20 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,36 @@ on:
branches:
- main
pull_request:
types: [opened, reopened]
types: [ opened, reopened ]
workflow_dispatch:

jobs:
pytest:
if: ${{ github.actor != 'all-contributors[bot]' }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [pypy-3.7]
python-version: [ pypy-3.7 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: actions/cache@v2
id: cache
with:
path: ~/.cache/pip
key: pipcache-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pipcache-${{ matrix.python-version }}-
- uses: actions/cache@v2
id: cache
with:
path: ~/.cache/pip
key: pipcache-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pipcache-${{ matrix.python-version }}-

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest

- name: Test with pytest
run: pytest
- name: Test with pytest
run: pytest