Skip to content

Commit c8e2fe8

Browse files
committed
add MacOS CI
1 parent 431de88 commit c8e2fe8

File tree

7 files changed

+60
-7
lines changed

7 files changed

+60
-7
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Python
2121
uses: actions/setup-python@v5
2222
with:
23-
python-version: '3.11'
23+
python-version: '3.12'
2424
cache: "pip"
2525

2626
- name: Install dependencies

.github/workflows/docs-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Python
2828
uses: actions/setup-python@v5
2929
with:
30-
python-version: '3.11'
30+
python-version: '3.12'
3131
cache: "pip"
3232

3333
- name: Install dependencies

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: "3.11"
18+
python-version: "3.12"
1919
cache: "pip"
2020

2121
- name: Install Python dependencies

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Install Python 3.11
21+
- name: Install Python 3.12
2222
uses: actions/setup-python@v5
2323
with:
24-
python-version: '3.11'
24+
python-version: '3.12'
2525
cache: "pip"
2626

2727
- name: Install pylint

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Python
2222
uses: actions/setup-python@v5
2323
with:
24-
python-version: '3.11'
24+
python-version: '3.12'
2525
cache: "pip"
2626

2727
- name: Install dependencies + pylint

.github/workflows/pytest-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
python-version: ["3.10", "3.11", "3.12", "3.13"]
20+
python-version: ["3.11", "3.12", "3.13"]
2121

2222
steps:
2323
- uses: actions/checkout@v4

.github/workflows/pytest-mac.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: pytest-mac
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
workflow_dispatch:
13+
14+
jobs:
15+
test-mac:
16+
runs-on: macos-latest
17+
18+
strategy:
19+
matrix:
20+
python-version: ["3.11", "3.12", "3.13"]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Install Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
cache: "pip"
30+
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install -r requirements.txt
35+
36+
- name: Install ppmpy
37+
run: pip install --editable .
38+
39+
- name: Print system info
40+
run: |
41+
echo '::group::NumPy'
42+
pip install threadpoolctl &>/dev/null
43+
python -c "import sys, numpy; print(numpy.__version__); print(sys.version); print(numpy.show_runtime())"
44+
echo '::endgroup::'
45+
echo '::group::CPU info'
46+
lscpu
47+
echo '::endgroup::'
48+
echo '::group::Package versions'
49+
pip list --format=freeze
50+
echo '::endgroup::'
51+
52+
- name: Run tests with pytest
53+
run: pytest -v -s --cov=ppmpy --color=yes

0 commit comments

Comments
 (0)