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

Commit

Permalink
py-mine#290 prevent all-contributors workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendly-Banana committed Sep 26, 2022
1 parent ceed78c commit 044fa83
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 44 deletions.
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

0 comments on commit 044fa83

Please sign in to comment.