Skip to content

Commit e28aff9

Browse files
committed
ci: macos non-exe too
1 parent 7bddb62 commit e28aff9

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ jobs:
6060
matrix:
6161
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
6262
os: [ubuntu-latest]
63-
# include:
64-
# - os: macos-latest
65-
# python-version: '3.12'
63+
include:
64+
- os: macos-latest
65+
python-version: '3.13'
6666

6767
runs-on: ${{ matrix.os }}
6868

@@ -77,26 +77,38 @@ jobs:
7777
timeout-minutes: 15
7878
env:
7979
GEMINI_CIROOT: ${{ github.workspace }}/ci
80+
GEMCI_ROOT: ${{ github.workspace }}/gemci
8081

8182
- name: upload test files if failed
8283
if: failure()
8384
uses: actions/upload-artifact@v4
8485
with:
85-
name: input-test-files
86-
path: ${{ github.workspace }}/ci
86+
name: input-${{ runner.os }}-py${{ matrix.python-version }}
87+
path: ${{ github.workspace }}/pytest
8788

8889
- uses: ./.github/workflows/composite-pkg
90+
if: runner.os == 'Linux'
8991
timeout-minutes: 15
9092

9193
- uses: ./.github/workflows/composite-gemini3d
94+
if: runner.os == 'Linux'
9295
timeout-minutes: 15
9396

9497
- name: Executable tests
95-
run: pytest ${{ github.workspace }} -m "exe"
98+
if: runner.os == 'Linux'
99+
run: pytest ${{ github.workspace }} -m "exe" --basetemp=${{ github.workspace }}/pytest-exe
96100
env:
97101
GEMCI_ROOT: ${{ github.workspace }}/gemci
98102
GEMINI_CIROOT: ${{ github.workspace }}/ci
99103

104+
- name: upload test files if failed
105+
if: failure()
106+
uses: actions/upload-artifact@v4
107+
with:
108+
name: exe-${{ runner.os }}-py${{ matrix.python-version }}
109+
path: ${{ github.workspace }}/pytest-exe
110+
111+
100112
# codecov coverage
101113
# - run: pip install codecov pytest-cov
102114
# - run: pytest --cov --cov-report=xml

.github/workflows/composite-python/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ runs:
1313
shell: bash
1414

1515
- name: Non-executable tests
16-
run: pytest ${{ github.workspace }} -m "not exe"
16+
run: pytest ${{ github.workspace }} -m "not exe" --basetemp=${{ github.workspace }}/pytest
1717
shell: bash
18-
env:
19-
GEMCI_ROOT: ${{ github.workspace }}/gemci

0 commit comments

Comments
 (0)