File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,31 +9,33 @@ permissions:
9
9
jobs :
10
10
distros :
11
11
name : " Ubuntu with Python ${{ matrix.python-version }}"
12
- runs-on : " ubuntu-20.04 "
12
+ runs-on : ${{ matrix.os }}
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
16
python-version : ["3.10", "3.11", "pypy3"]
17
+ os : ["ubuntu-latest", "macos-latest"]
17
18
steps :
18
19
- name : Checkout
19
- uses : " actions/checkout@v2 "
20
+ uses : " actions/checkout@v3 "
20
21
- name : Install apt dependencies
21
22
run : |
22
23
set -ex
23
24
sudo apt update
24
25
sudo apt install -y ldap-utils slapd enchant-2 libldap2-dev libsasl2-dev apparmor-utils
26
+ if : runner.os == 'Linux'
25
27
- name : Disable AppArmor
26
28
run : sudo aa-disable /usr/sbin/slapd
29
+ if : runner.os == 'Linux'
27
30
- name : Set up Python ${{ matrix.python-version }}
28
- uses : actions/setup-python@v2
31
+ uses : actions/setup-python@v4
29
32
with :
30
33
python-version : ${{ matrix.python-version }}
31
34
- name : " Install Python dependencies"
32
35
run : |
33
36
set -xe
34
37
python -V
35
38
python -m pip install --upgrade pip setuptools build
36
- python -m pip install --upgrade tox tox-gh-actions
37
39
- name : " build python-ldap ${{ matrix.python-version }}"
38
40
run : " python -m build"
39
41
- name : Upload a Build Artifact
You can’t perform that action at this time.
0 commit comments