Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
Move linting to a separate CI action
Browse files Browse the repository at this point in the history
hSaria committed Apr 19, 2022
1 parent 59bb267 commit d1d4413
Showing 2 changed files with 25 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -31,17 +31,14 @@ jobs:
run: sudo apt-get install -y pcre2-utils

- name: Install test dependencies
run: pip3 install coveralls pylint pytest-cov
run: pip3 install coveralls pytest-cov

- name: Install ChromaTerm
run: python3 setup.py install

- name: PyTest
run: pytest --cov chromaterm/ --cov tests/ --cov-report term-missing

- name: PyLint
run: pylint chromaterm/ tests/

- name: Coveralls
if: ${{ github.repository == 'hSaria/ChromaTerm' && github.event_name == 'push' }}
env:
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies
run: pip3 install pylint pytest

- name: Install ChromaTerm
run: python3 setup.py install

- name: PyLint
run: pylint chromaterm/ tests/

0 comments on commit d1d4413

Please sign in to comment.