-
-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (42 loc) · 1.43 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
name: build
on:
push:
branches:
- '*'
pull_request:
branches: [ main ]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.9 ]
env:
OS: ubuntu-latest
steps:
- 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 wheel
if [ -f test_requirements.txt ]; then pip install -r test_requirements.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
scripts/lint
- name: Unit test with coverage
run: |
scripts/coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
- name: smoke test
run: |
pip install .
mkdir -p /home/runner/.config/opn-cli
touch /home/runner/.config/opn-cli/conf.yaml
opn-cli version
opn-cli new command core firewall category --tag categories -m https://raw.githubusercontent.com/opnsense/core/master/src/opnsense/mvc/app/models/OPNsense/Firewall/Category.xml -f https://raw.githubusercontent.com/opnsense/core/master/src/opnsense/mvc/app/controllers/OPNsense/Firewall/forms/categoryEdit.xml