-
Notifications
You must be signed in to change notification settings - Fork 55
45 lines (40 loc) · 1.21 KB
/
tests-macos-intel.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: tests-macos-intel
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
tests:
name: '${{ matrix.os }}:python-${{ matrix.python-version }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-12, macos-13]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
id: setup_python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
if: steps.setup_python.outcome == 'success'
run: |
python -m pip install -U pip
python -m pip install -e .
python -m pip install pytest pytest-cov
- name: Run tests
if: steps.setup_python.outcome == 'success'
run: |
make opt
pytest --tb=short --junitxml=junit/test-results.xml
- name: Check test ouptut created
id: check_test_file
uses: andstor/file-existence-action@v3
with:
files: "/home/runner/work/vplanet/vplanet/junit/test-results.xml"
fail: true