Skip to content

Commit

Permalink
ci: macos non-exe too
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 10, 2025
1 parent 7bddb62 commit e28aff9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest]
# include:
# - os: macos-latest
# python-version: '3.12'
include:
- os: macos-latest
python-version: '3.13'

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

Expand All @@ -77,26 +77,38 @@ jobs:
timeout-minutes: 15
env:
GEMINI_CIROOT: ${{ github.workspace }}/ci
GEMCI_ROOT: ${{ github.workspace }}/gemci

- name: upload test files if failed
if: failure()
uses: actions/upload-artifact@v4
with:
name: input-test-files
path: ${{ github.workspace }}/ci
name: input-${{ runner.os }}-py${{ matrix.python-version }}
path: ${{ github.workspace }}/pytest

- uses: ./.github/workflows/composite-pkg
if: runner.os == 'Linux'
timeout-minutes: 15

- uses: ./.github/workflows/composite-gemini3d
if: runner.os == 'Linux'
timeout-minutes: 15

- name: Executable tests
run: pytest ${{ github.workspace }} -m "exe"
if: runner.os == 'Linux'
run: pytest ${{ github.workspace }} -m "exe" --basetemp=${{ github.workspace }}/pytest-exe
env:
GEMCI_ROOT: ${{ github.workspace }}/gemci
GEMINI_CIROOT: ${{ github.workspace }}/ci

- name: upload test files if failed
if: failure()
uses: actions/upload-artifact@v4
with:
name: exe-${{ runner.os }}-py${{ matrix.python-version }}
path: ${{ github.workspace }}/pytest-exe


# codecov coverage
# - run: pip install codecov pytest-cov
# - run: pytest --cov --cov-report=xml
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/composite-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ runs:
shell: bash

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

0 comments on commit e28aff9

Please sign in to comment.