forked from JohanBlome/encapp
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.26 KB
/
build.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
37
38
39
40
41
name: build
on: [push]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
api-level: [29]
python-version: ["3.9", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Build python
run: |
python -m pip install --upgrade pip
pip install pytest pylint flake8 humanfriendly numpy pandas seaborn protobuf argparse_formatter
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
flake8 scripts --count --select=E9,F63,F7,F82 --exclude scripts/proto --show-source --statistics
flake8 scripts --exclude scripts/proto --count --exit-zero --statistics
pylint scripts --ignore scripts/proto --errors-only --exit-zero
pylint scripts --ignore scripts/proto --exit-zero
- uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Build android
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
script: |
./gradlew build