DAOS-14559 ci: Create Actions jobs for isort linting and version chec… #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Version checking | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
upgrade-check: | |
name: Check for updates | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
package: [pylint, yamllint, isort, codespell] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install extra python packages | |
run: python3 -m pip install --requirement utils/cq/requirements.txt | |
- name: Check ${{ matrix.package }} version | |
run: python -m ${{ matrix.package }} --version | tee -a version-pre | |
- name: Upgrade | |
run: pip install --upgrade ${{ matrix.package }} | |
- name: Check ${{ matrix.package }} for version | |
run: python -m ${{ matrix.package }} --version | diff version-pre - |