Skip to content

Commit a4dacd7

Browse files
author
Daniel Zagaynov
committed
Add actions for macos
1 parent 4f80429 commit a4dacd7

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/macos.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: check_on_macos
3+
on: [push, pull_request]
4+
5+
env:
6+
PKG_CONFIG_PATH: "/opt/homebrew/opt/libxcrypt/lib/pkgconfig"
7+
8+
jobs:
9+
check_development:
10+
runs-on: macos-latest
11+
strategy:
12+
fail-fast: false
13+
steps:
14+
- uses: actions/checkout@v5
15+
with:
16+
ref: development
17+
- uses: actions/setup-python@v6
18+
- run: brew install meson libxcrypt
19+
- name: Prepare
20+
run: meson macos_build
21+
- name: Run tests
22+
run: meson test -C macos_build
23+
- name: Print log on failure
24+
if: failure()
25+
run: cat linux_build/meson-logs/testlog.txt
26+
check_master:
27+
runs-on: macos-latest
28+
strategy:
29+
fail-fast: false
30+
steps:
31+
- run: brew install libxcrypt
32+
- uses: actions/checkout@v5
33+
- uses: actions/setup-python@v6
34+
with:
35+
python-version: "3.13"
36+
check-latest: true
37+
- name: Build and install wheel
38+
env:
39+
PKG_CONFIG_PATH: "/opt/homebrew/opt/libxcrypt/lib/pkgconfig"
40+
run: pip install .
41+
- name: Run tests
42+
run: python3 -m unittest discover -s tests -v
43+
check_pypi:
44+
runs-on: macos-latest
45+
strategy:
46+
fail-fast: false
47+
steps:
48+
- uses: actions/checkout@v5
49+
- uses: actions/setup-python@v6
50+
with:
51+
python-version: "3.13"
52+
check-latest: true
53+
- run: brew install libxcrypt
54+
- name: Install from pypi
55+
env:
56+
PKG_CONFIG_PATH: "/opt/homebrew/opt/libxcrypt/lib/pkgconfig"
57+
run: pip install pyxcrypt
58+
- name: Run tests
59+
run: python3 -m unittest discover -s tests -v

0 commit comments

Comments
 (0)