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

Updating master with lastest dev #208

Merged
merged 19 commits into from
Jan 29, 2020
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
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
exclude = node_modules/*, dataAnalysis/*
29 changes: 17 additions & 12 deletions .github/workflows/Continuous_Integration_Backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 11.x]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
- name: Build project
run: npm run build
- name: Run Tests
run: export CI=true && npm run test -- --coverage
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install libpq-dev python3-dev
python -m pip install --upgrade pip
pip install -r server/requirements.txt
- 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
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: pytest server
Loading