Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 044fa83

Browse files
py-mine#290 prevent all-contributors workflows
1 parent ceed78c commit 044fa83

File tree

4 files changed

+45
-44
lines changed

4 files changed

+45
-44
lines changed

.github/workflows/black.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Auto Black
22

3-
on: [push]
3+
on: [ push ]
44

55
jobs:
66
autoblack:
7-
7+
if: ${{ github.actor != 'all-contributors[bot]' }}
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
1111
with:
12-
ref: ${{ github.head_ref }}
12+
ref: ${{ github.head_ref }}
1313

1414
- uses: actions/setup-python@v1
1515

.github/workflows/flake8.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33

44
name: Flake8 Lint
55

6-
on: [push]
6+
on: [ push ]
77

88
jobs:
99
flake8-lint:
10-
10+
if: ${{ github.actor != 'all-contributors[bot]' }}
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [pypy-3.7]
14+
python-version: [ pypy-3.7 ]
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install flake8
26-
- name: Lint with flake8
27-
run: |
28-
# stop the build if there are Python syntax errors or undefined names
29-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30-
flake8 . --count --exit-zero --max-complexity=10 --statistics
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install flake8
26+
- name: Lint with flake8
27+
run: |
28+
# stop the build if there are Python syntax errors or undefined names
29+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30+
flake8 . --count --exit-zero --max-complexity=10 --statistics

.github/workflows/profanity.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Profanity Check
22

33
on:
44
issues:
5-
types: [opened, edited]
5+
types: [ opened, edited ]
66
issue_comment:
7-
types: [created, edited]
7+
types: [ created, edited ]
88
pull_request:
9-
types: [opened, edited]
9+
types: [ opened, edited ]
1010

1111
jobs:
1212
profanity:
13+
if: ${{ github.actor != 'all-contributors[bot]' }}
1314
runs-on: ubuntu-latest
14-
1515
steps:
1616
- name: Profanity filter
1717
uses: radiantly/profanity-filter-action@v1.1

.github/workflows/pytest.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,36 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [opened, reopened]
8+
types: [ opened, reopened ]
99
workflow_dispatch:
1010

1111
jobs:
1212
pytest:
13+
if: ${{ github.actor != 'all-contributors[bot]' }}
1314
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
16-
python-version: [pypy-3.7]
17+
python-version: [ pypy-3.7 ]
1718
steps:
18-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v2
1920

20-
- uses: actions/cache@v2
21-
id: cache
22-
with:
23-
path: ~/.cache/pip
24-
key: pipcache-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
25-
restore-keys: |
26-
pipcache-${{ matrix.python-version }}-
21+
- uses: actions/cache@v2
22+
id: cache
23+
with:
24+
path: ~/.cache/pip
25+
key: pipcache-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}
26+
restore-keys: |
27+
pipcache-${{ matrix.python-version }}-
2728
28-
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v2
30-
with:
31-
python-version: ${{ matrix.python-version }}
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
3233

33-
- name: Install dependencies
34-
run: |
35-
pip install -r requirements.txt
36-
pip install pytest
34+
- name: Install dependencies
35+
run: |
36+
pip install -r requirements.txt
37+
pip install pytest
3738
38-
- name: Test with pytest
39-
run: pytest
39+
- name: Test with pytest
40+
run: pytest

0 commit comments

Comments
 (0)