| 123456789101112131415161718192021222324252627282930313233343536373839 |
- name: lint
- # Run this workflow every time a new commit pushed to your repository
- on:
- push:
- branches:
- - master
- pull_request:
- branches:
- - master
- jobs:
- # Set the job key. The key is displayed as the job name
- # when a job name is not provided
- lint:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- python-version: [ '3.8' ]
- steps:
- - name: Checkout code
- uses: actions/checkout@v2
- - name: Setup Python
- uses: actions/setup-python@v2
- with:
- python-version: ${{ matrix.python-version }}
- - name: Cache pip dir
- uses: actions/cache@v2
- with:
- path: ~/.cache/pip
- key: pip-cache-${{ matrix.python-version }}-lint
- - name: Install required packages
- run: pip install tox
- - name: Run tox
- run: tox -e lint
|