From 5e394ad7a66f2afd9d79921424b8f76534f5b4d6 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Fri, 14 May 2021 11:10:14 +0300 Subject: Implement Github action CI workflow (#4) * Add pylint dependency * Add initial pylintrc and scripts * Cleanup lints * Initial CI workflow * Skip tests for now --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e4ba0f7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install pip and testing tools + run: | + python -m pip install --upgrade pipenv + pipenv sync -d + - name: Check formatting with black + run: | + pipenv run formatcheck + - name: Run pylint + run: | + pipenv run lint + # - name: Test with pytest + # run: | + # pipenv run test -- cgit v1.3.1