Skip to content

Commit 78352f7

Browse files
committed
fix indentation to make it easier to compare with before
1 parent 6d3a678 commit 78352f7

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

content/continuous-integration.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -242,52 +242,52 @@ in the [Collaborative Git lesson](https://coderefinery.github.io/git-collaborati
242242
---
243243
emphasize-lines: 14,30,40-46
244244
---
245-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
246-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
247-
248-
name: Python application
249-
250-
on:
251-
push:
252-
branches: [ "main" ]
253-
pull_request:
254-
branches: [ "main" ]
255-
256-
permissions:
257-
contents: read
258-
pull-requests: write
259-
260-
jobs:
261-
build:
262-
263-
runs-on: ubuntu-latest
264-
265-
steps:
266-
- uses: actions/checkout@v4
267-
- name: Set up Python 3.10
268-
uses: actions/setup-python@v3
269-
with:
270-
python-version: "3.10"
271-
- name: Install dependencies
272-
run: |
273-
python -m pip install --upgrade pip
274-
pip install flake8 pytest pytest-cov
275-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
276-
- name: Lint with flake8
277-
run: |
278-
# stop the build if there are Python syntax errors or undefined names
279-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
280-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
281-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
282-
- name: Test with pytest
283-
run: |
284-
pytest --cov-report "xml:coverage.xml" --cov=.
285-
- name: Create Coverage
286-
if: ${{ github.event_name == 'pull_request' }}
287-
uses: orgoro/coverage@v3
288-
with:
289-
coverageFile: coverage.xml
290-
token: ${{ secrets.GITHUB_TOKEN }}
245+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
246+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
247+
248+
name: Python application
249+
250+
on:
251+
push:
252+
branches: [ "main" ]
253+
pull_request:
254+
branches: [ "main" ]
255+
256+
permissions:
257+
contents: read
258+
pull-requests: write
259+
260+
jobs:
261+
build:
262+
263+
runs-on: ubuntu-latest
264+
265+
steps:
266+
- uses: actions/checkout@v4
267+
- name: Set up Python 3.10
268+
uses: actions/setup-python@v3
269+
with:
270+
python-version: "3.10"
271+
- name: Install dependencies
272+
run: |
273+
python -m pip install --upgrade pip
274+
pip install flake8 pytest pytest-cov
275+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
276+
- name: Lint with flake8
277+
run: |
278+
# stop the build if there are Python syntax errors or undefined names
279+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
280+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
281+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
282+
- name: Test with pytest
283+
run: |
284+
pytest --cov-report "xml:coverage.xml" --cov=.
285+
- name: Create Coverage
286+
if: ${{ github.event_name == 'pull_request' }}
287+
uses: orgoro/coverage@v3
288+
with:
289+
coverageFile: coverage.xml
290+
token: ${{ secrets.GITHUB_TOKEN }}
291291
```
292292
293293
Commit the change by pressing the "Start Commit" button:

0 commit comments

Comments
 (0)