Skip to content

Commit 13b8fd2

Browse files
authored
Branch was updated using the 'autoupdate branch' Actions workflow.
2 parents f981dfe + c85c9c4 commit 13b8fd2

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

content/actions/guides/building-and-testing-python.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -365,26 +365,26 @@ jobs:
365365
matrix:
366366
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
367367
368-
steps:
369-
- uses: actions/checkout@v2
370-
- name: Setup Python # Set Python version
371-
uses: actions/setup-python@v2
372-
with:
373-
python-version: ${{ matrix.python-version }}
374-
# Install pip and pytest
375-
- name: Install dependencies
376-
run: |
377-
python -m pip install --upgrade pip
378-
pip install pytest
379-
- name: Test with pytest
380-
run: pytest tests.py --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
381-
- name: Upload pytest test results
382-
uses: actions/upload-artifact@v2
383-
with:
384-
name: pytest-results-${{ matrix.python-version }}
385-
path: junit/test-results-${{ matrix.python-version }}.xml
386-
# Use always() to always run this step to publish test results when there are test failures
387-
if: ${{ always() }}
368+
steps:
369+
- uses: actions/checkout@v2
370+
- name: Setup Python # Set Python version
371+
uses: actions/setup-python@v2
372+
with:
373+
python-version: ${{ matrix.python-version }}
374+
# Install pip and pytest
375+
- name: Install dependencies
376+
run: |
377+
python -m pip install --upgrade pip
378+
pip install pytest
379+
- name: Test with pytest
380+
run: pytest tests.py --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
381+
- name: Upload pytest test results
382+
uses: actions/upload-artifact@v2
383+
with:
384+
name: pytest-results-${{ matrix.python-version }}
385+
path: junit/test-results-${{ matrix.python-version }}.xml
386+
# Use always() to always run this step to publish test results when there are test failures
387+
if: ${{ always() }}
388388
```
389389
{% endraw %}
390390

content/actions/reference/workflow-syntax-for-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The name of your workflow. {% data variables.product.prodname_dotcom %} displays
2727

2828
### `on`
2929

30-
**Required** The name of the {% data variables.product.prodname_dotcom %} event that triggers the workflow. You can provide a single event `string`, `array` of events, `array` of event `types`, or an event configuration `map` that schedules a workflow or restricts the execution of a workflow to specific files, tags, or branch changes. For a list of available events, see "[Events that trigger workflows](/articles/events-that-trigger-workflows)."
30+
**Required**. The name of the {% data variables.product.prodname_dotcom %} event that triggers the workflow. You can provide a single event `string`, `array` of events, `array` of event `types`, or an event configuration `map` that schedules a workflow or restricts the execution of a workflow to specific files, tags, or branch changes. For a list of available events, see "[Events that trigger workflows](/articles/events-that-trigger-workflows)."
3131

3232
{% data reusables.github-actions.actions-on-examples %}
3333

@@ -286,7 +286,7 @@ In this example, `job3` uses the `always()` conditional expression so that it al
286286

287287
### `jobs.<job_id>.runs-on`
288288

289-
**Required** The type of machine to run the job on. The machine can be either a {% data variables.product.prodname_dotcom %}-hosted runner or a self-hosted runner.
289+
**Required**. The type of machine to run the job on. The machine can be either a {% data variables.product.prodname_dotcom %}-hosted runner or a self-hosted runner.
290290

291291
{% data reusables.actions.enterprise-github-hosted-runners %}
292292

0 commit comments

Comments
 (0)