Skip to content

Commit 701d2fa

Browse files
fix: revert workflow formatting
1 parent 1530d76 commit 701d2fa

File tree

1 file changed

+28
-34
lines changed

1 file changed

+28
-34
lines changed

.github/workflows/python-package.yml

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,42 @@ name: Python package
55

66
on:
77
push:
8-
branches: [master]
8+
branches: [ master ]
99
pull_request:
10-
branches: [master]
10+
branches: [ master ]
1111

1212
jobs:
1313
build:
14+
1415
runs-on: ubuntu-latest
1516
strategy:
1617
fail-fast: false
1718
matrix:
1819
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1920

2021
steps:
21-
- uses: actions/checkout@v4
22-
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
28-
- name: Install dependencies
29-
run: |
30-
python -m pip install --upgrade pip
31-
pip install -r requirements.txt -r dev-requirements.txt
32-
pip install -e .
33-
34-
- name: Lint with flake8
35-
run: |
36-
# stop the build if there are Python syntax errors or undefined names
37-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
38-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40-
41-
- name: Lint with PyLint
42-
run: pylint --rcfile=.pylintrc src/aws_secretsmanager_caching
43-
44-
- name: Check formatting with Ruff
45-
uses: astral-sh/ruff-action@v3
46-
47-
- name: Test with pytest
48-
run: |
49-
pytest test/unit/
50-
51-
- name: Upload coverage to Codecov
52-
uses: codecov/codecov-action@v3
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt -r dev-requirements.txt
31+
pip install -e .
32+
- name: Lint with flake8
33+
run: |
34+
# stop the build if there are Python syntax errors or undefined names
35+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38+
- name: Lint with PyLint
39+
run: pylint --rcfile=.pylintrc src/aws_secretsmanager_caching
40+
- name: Check formatting with Ruff
41+
uses: astral-sh/ruff-action@v3
42+
- name: Test with pytest
43+
run: |
44+
pytest test/unit/
45+
- name: Upload coverage to Codecov
46+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)