From 9e6dfacceb798efce9d3b0ddeab3e02e2997f5bd Mon Sep 17 00:00:00 2001 From: Dmytro Bondar Date: Wed, 27 Oct 2021 21:46:07 +0300 Subject: [PATCH] Fix github actions workflow - install correct python version - set `fail-fast: false` to run all jobs - remove hard-coded value for HOME directory --- .github/workflows/ci.yaml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 59fd940..26cea6c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,8 +17,6 @@ jobs: uses: actions/checkout@v2 - name: Set up Python 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 . - run: flake8 . @@ -30,23 +28,23 @@ jobs: name: Tests runs-on: ubuntu-latest strategy: + fail-fast: false matrix: python-version: - - 3.6 - - 3.7 - - 3.8 - - 3.9 - - 3.10 - - nightly + - '3.6' + - '3.7' + - '3.8' + - '3.9' + - '3.10' steps: - name: Checkout uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.pyver }} + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: ${{ matrix.pyver }} - - name: Fix GitHub Actions path - run: echo /home/runner/.local/bin >>$GITHUB_PATH + python-version: ${{ matrix.python-version }} + - name: Append GitHub Actions system path + run: echo "$HOME/.local/bin" >> $GITHUB_PATH - run: pip install coveralls - run: pip install . - run: coverage run --source=yamllint -m unittest discover