Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIP dependencies refactor #768

Merged
merged 19 commits into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/activity_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,27 @@ on:
- published

jobs:
Build_and_test:
Build_lint_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install gdal-bin
python -m pip install --upgrade pip
pip install pipenv
python-version: 3.8
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # TODO use a main flake8 config file
# 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: Run Tests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cp activity/settings/local-sample.py activity/settings/local.py
pipenv install
source $(python3 -m pipenv --venv)/bin/activate
pip install pip-tools && pip-sync
coverage run manage.py test
echo "++++++++ Show test coverage report +++++++"
coverage report
Expand All @@ -51,7 +44,7 @@ jobs:

Infrastructure:
runs-on: ubuntu-latest
needs: Build_and_test
needs: Build_lint_test
if: github.ref == 'refs/heads/develop' || github.event_name == 'release'
steps:
- uses: actions/checkout@v1
Expand Down
Loading