-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (57 loc) · 1.56 KB
/
macos.yml
File metadata and controls
59 lines (57 loc) · 1.56 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
name: check_on_macos
on: [push, pull_request]
env:
PKG_CONFIG_PATH: "/opt/homebrew/opt/libxcrypt/lib/pkgconfig"
jobs:
check_development:
runs-on: macos-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v5
with:
ref: development
- uses: actions/setup-python@v6
- run: brew install meson libxcrypt
- name: Prepare
run: meson macos_build
- name: Run tests
run: meson test -C macos_build
- name: Print log on failure
if: failure()
run: cat linux_build/meson-logs/testlog.txt
check_master:
runs-on: macos-latest
strategy:
fail-fast: false
steps:
- run: brew install libxcrypt
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
check-latest: true
- name: Build and install wheel
env:
PKG_CONFIG_PATH: "/opt/homebrew/opt/libxcrypt/lib/pkgconfig"
run: pip install .
- name: Run tests
run: python3 -m unittest discover -s tests -v
check_pypi:
runs-on: macos-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
check-latest: true
- run: brew install libxcrypt
- name: Install from pypi
env:
PKG_CONFIG_PATH: "/opt/homebrew/opt/libxcrypt/lib/pkgconfig"
run: pip install pyxcrypt
- name: Run tests
run: python3 -m unittest discover -s tests -v