Skip to content

Commit a7e9009

Browse files
committed
Add MacOS tests
1 parent 2102568 commit a7e9009

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/macos.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: macos-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [macos-latest]
12+
# Python 3.3 and 3.4 have been removed since github won't provide these anymore
13+
# As of 2023/01/09, we have removed python 3.5 and 3.6 as they don't work anymore with linux on github
14+
# As of 2023/08/30, we have removed python 2.7 since github actions won't provide it anymore
15+
# As of 2025/01/20, we have removed python 3.7 since github actions won't povide it anymore
16+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13", 'pypy-3.6', 'pypy-3.7', 'pypy-3.8', 'pypy-3.10']
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install --upgrade setuptools
28+
if [ -f command_runner/requirements.txt ]; then pip install -r command_runner/requirements.txt; fi
29+
- name: Generate Report
30+
env:
31+
RUNNING_ON_GITHUB_ACTIONS: true
32+
run: |
33+
pip install pytest coverage
34+
python -m coverage run -m pytest -vvs tests
35+
- name: Upload Coverage to Codecov
36+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)