@@ -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
0 commit comments