diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-30 18:23:21 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-30 18:23:21 -0500 |
commit | 4d4d0c4a8225b68765043159043097dfabf642c0 (patch) | |
tree | 4a706337cb77717584f390752fd1e6870c103808 /.github | |
parent | 9da7398193702615344a113d93dda1314db53eb1 (diff) | |
download | cmd2-git-4d4d0c4a8225b68765043159043097dfabf642c0.tar.gz |
Only run a single nox session for each version of Python in GitHub Actions matrix
Also:
- Temporarily disable dependency caching in GitHub Actions
- For Azure Pipelines MacOs testing, add Python 3.9 and remove 3.5
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ed536b1..04c82f41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,24 +33,20 @@ jobs: uses: actions/setup-python@v2 # https://github.com/actions/setup-python with: python-version: ${{ matrix.python-version }} - - name: Cache dependencies - id: cache-deps - uses: actions/cache@v2 # https://github.com/actions/cache - with: - path: | - ${{ env.pythonLocation }}/bin/* - ${{ env.pythonLocation }}/lib/* - ${{ env.pythonLocation }}/scripts/* - key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'requirements.txt') }} +# - name: Cache dependencies +# id: cache-deps +# uses: actions/cache@v2 # https://github.com/actions/cache +# with: +# path: ~/.cache/pip +# key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }} - name: Install python prerequisites - # Cache step doesnt seems to work right on windows, so install Python prerequisites on Windows regardless - if: matrix.os == 'windows-latest' || steps.cache-deps.outputs.cache-hit != 'true' - run: | - pip install -U --user pip setuptools setuptools-scm flake8 nox + # Only install dependencies when there is a cache miss +# if: steps.cache-deps.outputs.cache-hit != 'true' + run: pip install -U --user pip setuptools setuptools-scm flake8 nox - name: Lint if: matrix.os == 'ubuntu-latest' && matrix.python-version == env.PYTHON_LATEST run: flake8 . --count --ignore=E252,W503 --max-complexity=26 --max-line-length=127 --show-source --statistics ; - name: Run tests and post coverage results env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: python -m nox --non-interactive + run: python -m nox --non-interactive --session matrix.python-version |