Skip to content

Commit 404f80e

Browse files
author
Timothy MacDonald
authored
Merge pull request #92 from lacework/fortinet-update
Fortinet update
2 parents b675d47 + 2779bde commit 404f80e

20 files changed

+3763
-1305
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,40 +40,48 @@ jobs:
4040
include:
4141
- os: macos-latest
4242
TARGET: macos_ARM
43-
CMD_BUILD: pyinstaller generate_csa_report_mac_arm.spec
43+
CMD_BUILD: poetry run pyinstaller generate_csa_report_mac_arm.spec
4444
OUT_FILE_NAME: lw_report_gen_mac_arm
4545
ASSET_MIME: application/octet-stream
4646
- os: macos-13
4747
TARGET: macos_X86_64
48-
CMD_BUILD: pyinstaller generate_csa_report_mac.spec
48+
CMD_BUILD: poetry run pyinstaller generate_csa_report_mac.spec
4949
OUT_FILE_NAME: lw_report_gen_mac_x86_64
5050
ASSET_MIME: application/octet-stream
5151
- os: windows-latest
5252
TARGET: windows
53-
CMD_BUILD: pyinstaller generate_csa_report_win.spec
53+
CMD_BUILD: poetry run pyinstaller generate_csa_report_win.spec
5454
OUT_FILE_NAME: lw_report_gen_win.exe
5555
ASSET_MIME: application/vnd.microsoft.portable-executable
5656
- os: ubuntu-latest
5757
TARGET: linux
58-
CMD_BUILD: pyinstaller generate_csa_report_linux.spec
58+
CMD_BUILD: poetry run pyinstaller generate_csa_report_linux.spec
5959
OUT_FILE_NAME: lw_report_gen_linux_x86_64
6060
ASSET_MIME: application/octet-stream
6161
steps:
6262
- uses: actions/checkout@v3
63-
- name: Set up Python 3.10.11
63+
64+
- name: install poetry
65+
run: pipx install poetry
66+
67+
- name: Set up Python 3.10
6468
uses: actions/setup-python@v4
6569
with:
66-
python-version: 3.10.11
70+
python-version: 3.10
71+
cache: 'poetry'
72+
73+
- name: Install python modules
74+
run: |
75+
poetry check
76+
poetry lock --no-update
77+
poetry install --verbose
78+
6779
- name: Update VERSION file
6880
id: update_version
6981
run: |
7082
python ./.github/workflows/ci_bump_version.py ${{ github.ref_name }}
7183
cat ./VERSION
72-
- name: Install dependencies
73-
run: |
74-
python -m pip install --upgrade pip
75-
pip install -r requirements.txt
76-
pip install pyinstaller
84+
7785
- name: Build with pyinstaller for ${{matrix.TARGET}}
7886
run: ${{matrix.CMD_BUILD}}
7987
- name: Load Release URL File from release job

.github/workflows/test.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v3
8+
- name: install poetry
9+
run: pipx install poetry
810
- uses: actions/setup-python@v4
911
with:
10-
python-version: '3.8'
11-
cache: 'pip' # cache pip dependencies
12-
- run: sudo apt-get install libegl1-mesa
13-
- run: pip install -r requirements.txt
14-
- run: pip --version
15-
- run: python lw_report_gen.py --author Author --customer Customer
12+
python-version: '3.10'
13+
cache: 'poetry'
14+
- name: install dependencies
15+
run: sudo apt-get install libglx-mesa0 libgl1
16+
17+
- name: Install dependencies
18+
run: |
19+
poetry check
20+
poetry lock
21+
poetry install --verbose
22+
23+
- run: poetry run python lw_report_gen.py --author Author --customer Customer
1624
env:
1725
LW_ACCOUNT: ${{ secrets.LW_ACCOUNT }}
1826
LW_SUBACCOUNT: ${{ secrets.LW_SUBACCOUNT }}

0 commit comments

Comments
 (0)