Skip to content

Commit cb5ce9f

Browse files
hohPsycojoker
authored andcommitted
Fix: Tests were not running on macOS
1 parent 0892735 commit cb5ce9f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/pytest.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@ on:
66
branches:
77
- main
88
schedule:
9-
# Run every night at 04:00 (GitHub Actions timezone)
10-
# in order to catch when unfrozen dependency updates
11-
# break the use of the library.
129
- cron: '4 0 * * *'
1310

1411
jobs:
1512
tests:
1613
strategy:
1714
fail-fast: false
1815
matrix:
19-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
20-
os: [ubuntu-22.04, ubuntu-24.04]
16+
python-version: ["3.9", "3.10", "3.11", "3.12"]
17+
os: [ubuntu-22.04, ubuntu-24.04, macos-14, macos-15]
2118
runs-on: ${{ matrix.os }}
2219

2320
steps:
@@ -26,15 +23,24 @@ jobs:
2623
with:
2724
python-version: ${{ matrix.python-version }}
2825

29-
- run: |
26+
- name: "apt-get install"
27+
run: |
3028
sudo apt-get update
31-
sudo apt-get install -y python3-pip libsodium-dev
29+
sudo apt-get install -y python3-pip libsodium-dev libgmp-dev
30+
if: runner.os == 'Linux'
3231

3332
- run: |
33+
brew install libsodium
34+
echo "DYLD_LIBRARY_PATH=$(brew --prefix libsodium)/lib" >> $GITHUB_ENV
35+
if: runner.os == 'macOS'
36+
37+
- name: "Install Hatch"
38+
run: |
3439
python3 -m venv /tmp/venv
3540
/tmp/venv/bin/python -m pip install --upgrade pip hatch coverage
3641
37-
- run: |
42+
- name: "Run Tests"
43+
run: |
3844
/tmp/venv/bin/pip freeze
3945
/tmp/venv/bin/hatch run testing:pip freeze
4046
/tmp/venv/bin/hatch run testing:test

0 commit comments

Comments
 (0)