Skip to content

Commit

Permalink
Cleanup CI-pipelines for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tnipen committed Mar 11, 2024
1 parent b18c020 commit 78bda30
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 97 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.7]

steps:
- uses: actions/checkout@v2
Expand All @@ -25,19 +25,20 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install libgeos-dev libproj-dev
# sudo apt install libgeos-dev libproj-dev
python -m pip install --upgrade pip
python -m pip install flake8 nose
- name: Install package
run: |
python -m pip install . --only-binary=:all:
python -m pip install .[test] --only-binary=:all:
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 verif scripts --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with nose
run: |
nosetests
coverage run --source verif -m unittest discover
coverage report --precision 2
7 changes: 4 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ nothing:
VERSION=$(shell grep __version__ verif/version.py | cut -d"=" -f2 | sed s"/ //g" | sed s"/'//g")
test:
coverage run --source verif -m unittest discover
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

coverage: test
coverage report --precision 2
Expand All @@ -18,12 +19,12 @@ coverage: test
dist:
echo $(VERSION)
rm -rf dist
python3.8 setup.py sdist
python3.8 setup.py bdist_wheel
python3 setup.py sdist
python3 setup.py bdist_wheel
@ echo "Next, run 'twine upload dist/*'"

clean:
python setup.py clean
python3 setup.py clean
rm -rf build/
find . -name '*.pyc' -delete
rm -rf deb_dist
Expand Down
14 changes: 0 additions & 14 deletions run_coveralls.py

This file was deleted.

4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@
# for example:
# $ pip install -e .[dev,test]
extras_require={
# 'dev': ['check-manifest'],
'test': ['coverage', 'pep8', 'pylint'],
'test': ['coverage', 'pep8', 'pylint', 'flake8'],
'cartopy': ['cartopy'],
# 'test': ['pytest'],
},

test_suite="verif.tests",
Expand Down

0 comments on commit 78bda30

Please sign in to comment.