-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (33 loc) · 1.13 KB
/
macOS.yaml
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
name: pytest-macos
run-name: Run pytest on macOS
on: [push]
jobs:
pytest:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.7.17", "3.11.4"]
name: pytest-macos-python-${{ matrix.python-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare system
run: |
rm -f '/usr/local/bin/2to3' # Homebrew will fail if this exists
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install Homebrew dependencies
run: |
rm -f /usr/local/bin/2to3* /usr/local/bin/python3* /usr/local/bin/idle3* \
/usr/local/bin/pydoc3* # Homebrew will fail if these exist
brew install gnu-time coreutils diffutils dpkg ghostscript texlive
- name: Install Python dependencies
run: |
python3 -m pip install .[tests]
- name: Run pytest
run: |
python3 -m pytest -v --time-tool time