-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.16 KB
/
build.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: build
# -----------------
# Control variables (GitHub Secrets)
# -----------------
#
# At the GitHub 'organisation' or 'project' level you must have the following
# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): -
#
# (none)
#
# -----------
# Environment (GitHub Environments)
# -----------
#
# Environment (none)
on:
push:
branches:
- '**'
schedule:
# Build daily at 6:24am...
- cron: '24 6 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.10'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r package-requirements.txt
- name: Lint
run: |
pylint data_manager_metadata
pyroma .
- name: Test
run: |
python -m unittest test.test_metadata
python -m unittest test.test_api
- name: Build
run: python setup.py bdist_wheel