-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 907 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This workflow will install Python dependencies, run tests and lint with a single version of Python
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get clean && sudo apt-get update
sudo apt-get install python3-dev python3 python3-pip -y
python --version
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_indexer.txt
pip install nose2 black flake8
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Test
run: |
nose2
- name: black
run: |
black --check .
- name: flake8
run: |
flake8 . --ignore E501,W503,E203,E722,E402