forked from INM-6/elephant
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.11 KB
/
test-macos.yml
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
name: Test macOS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_macos:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.10', 3.11]
os: [macos-11, macos-12, macos-13]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements/requirements.txt
pip install -i https://test.pypi.org/simple/ elephant-test
# Display Python and system information for debugging
- name: Display Python and system information
run: |
python --version
pip list
uname -a
# Run the Python script
- name: Run Python script
run: |
cd requirements/
python test_spade.py