Skip to content

Commit 31a1d6d

Browse files
committed
Merge branch 'main' into temp
2 parents 21d2e89 + 13f2928 commit 31a1d6d

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.github/workflows/pull-request.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
python-version: [3.8, 3.11]
20-
os: [ubuntu-latest, macos-latest, windows-latest]
20+
os: [ubuntu-latest, windows-latest]
2121
runs-on: ${{ matrix.os }}
2222
steps:
2323
- uses: actions/checkout@v3
@@ -32,6 +32,27 @@ jobs:
3232
- name: Run Tox
3333
run: |
3434
tox -e release
35+
build_macos:
36+
strategy:
37+
matrix:
38+
python-version: [3.8, 3.11]
39+
runs-on: macos-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- name: Set up Python ${{ matrix.python-version }}
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: ${{ matrix.python-version }}
46+
- name: Install dependencies
47+
run: |
48+
brew install openssl
49+
brew install libmagic
50+
brew install postgresql
51+
python -m pip install --upgrade pip
52+
pip install tox
53+
- name: Run Tox
54+
run: |
55+
tox -e release
3556
3657
reuse:
3758
runs-on: ubuntu-latest

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
pyparsing
2-
scancode-toolkit>=32.2.0
32
scanoss
43
XlsxWriter
5-
fosslight_util>=2.1.0
4+
fosslight_util>=2.1.1
65
PyYAML
76
wheel>=0.38.1
87
intbitset
98
fosslight_binary>=5.0.0
9+
scancode-toolkit==32.0.*;sys_platform=="darwin"
10+
scancode-toolkit==32.2.*;sys_platform!="darwin"
11+
psycopg2-binary==2.9.9

tests/test_tox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def test_run():
3939

4040

4141
def test_help_command():
42-
success, _ = run_command("fosslight_source -h")
43-
assert success is True, "Test Release: Help command failed "
42+
success, msg = run_command("fosslight_source -h")
43+
assert success is True, f"Test Release: Help command failed :{msg}"
4444

4545

4646
def test_scan_command():

0 commit comments

Comments
 (0)