mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-22 07:36:25 -06:00
Fix github actions workflow
- install correct python version - set `fail-fast: false` to run all jobs - remove hard-coded value for HOME directory
This commit is contained in:
parent
11e8d8ff37
commit
9e6dfacceb
22
.github/workflows/ci.yaml
vendored
22
.github/workflows/ci.yaml
vendored
@ -17,8 +17,6 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
|
||||||
python-version: 3.9
|
|
||||||
- run: python -m pip install flake8 flake8-import-order doc8 sphinx
|
- run: python -m pip install flake8 flake8-import-order doc8 sphinx
|
||||||
- run: python -m pip install .
|
- run: python -m pip install .
|
||||||
- run: flake8 .
|
- run: flake8 .
|
||||||
@ -30,23 +28,23 @@ jobs:
|
|||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
- 3.6
|
- '3.6'
|
||||||
- 3.7
|
- '3.7'
|
||||||
- 3.8
|
- '3.8'
|
||||||
- 3.9
|
- '3.9'
|
||||||
- 3.10
|
- '3.10'
|
||||||
- nightly
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up Python ${{ matrix.pyver }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.pyver }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Fix GitHub Actions path
|
- name: Append GitHub Actions system path
|
||||||
run: echo /home/runner/.local/bin >>$GITHUB_PATH
|
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||||
- run: pip install coveralls
|
- run: pip install coveralls
|
||||||
- run: pip install .
|
- run: pip install .
|
||||||
- run: coverage run --source=yamllint -m unittest discover
|
- run: coverage run --source=yamllint -m unittest discover
|
||||||
|
Loading…
Reference in New Issue
Block a user