diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..b211a6b --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox + - name: Analysing the code with pylint + run: | + tox -e lint \ No newline at end of file diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml deleted file mode 100644 index 4c0ea76..0000000 --- a/.github/workflows/python-package.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: check_lint -on: - push: - pull_request: - -concurrency: - group: check-${{ github.ref }} - cancel-in-progress: true - -jobs: - test: - name: Check formatting - runs-on: ubuntu-latest - strategy: - fail-fast: false - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup python 3.11 - uses: actions/setup-python@v4 - with: - python-version: 3.11 - - name: Install tox - run: python -m pip install '.[test]' - - name: Run test suite - run: tox -e lint