Skip to content

Commit

Permalink
[add] workflow ignoring files on master/push
Browse files Browse the repository at this point in the history
  • Loading branch information
keyhr committed Feb 3, 2022
1 parent abcc867 commit 1172c76
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ on:
push:
branches: [ master ]
paths-ignore:
- 'License'
- 'README.md'
- 'setup.py'
- 'setup.cfg'
- 'requirements-dev.txt'
- 'MANIFEST.in'
- 'Img/'
- 'License'
- 'README.md'
pull_request:
branches: [ master ]
paths-ignore:
- 'License'
- 'README.md'
- 'License'
- 'README.md'

jobs:
build:
Expand All @@ -26,23 +31,23 @@ jobs:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]

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
python -m pip install -r requirements-dev.txt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install -e .
- name: Lint with flake8
run: |
flake8 c_formatter_42
- name: Test with pytest
run: |
pytest -vvv
- name: Static type checking with mypy
run: |
mypy c_formatter_42
- 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
python -m pip install -r requirements-dev.txt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install -e .
- name: Lint with flake8
run: |
flake8 c_formatter_42
- name: Test with pytest
run: |
pytest -vvv
- name: Static type checking with mypy
run: |
mypy c_formatter_42

0 comments on commit 1172c76

Please sign in to comment.