Skip to content

Commit

Permalink
Test2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmbelo authored Sep 26, 2023
1 parent 7c84256 commit ebac2c2
Showing 1 changed file with 43 additions and 42 deletions.
85 changes: 43 additions & 42 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,46 +84,47 @@ jobs:
path: ./delphifmx/__init__.pyi
key: ${{ runner.os }}-stubs

build_stubs_macos:
name: Build FMX Stubs MacOS
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ['3.11']
include:
- os: [macos-latest]
arch: ["x86_64"]

steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Build and Install FMX
run: |
python -m pip install setuptools --upgrade
python -m pip install wheel --upgrade
python setup.py install
- name: Install mypy
run: |
python -m pip install git+https://github.com/lmbelo/mypy.git
- name: Build Stubs
run: |
stubgen -m delphifmx -o ./delphifmx --include-docstrings
mv delphifmx/delphifmx.pyi delphifmx/__init__.pyi
- name: Cache Stubs
id: cache-stubs
uses: actions/cache@v3
with:
path: ./delphifmx/__init__.pyi
key: ${{ runner.os }}-stubs
# mypy times-out on MacOS
# build_stubs_macos:
# name: Build FMX Stubs MacOS
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# python: ['3.11']
# include:
# - os: [macos-latest]
# arch: ["x86_64"]

# steps:
# - name: Check out repository
# uses: actions/checkout@v3

# - name: Set up Python ${{ matrix.python }}
# uses: actions/setup-python@v3
# with:
# python-version: ${{ matrix.python }}

# - name: Build and Install FMX
# run: |
# python -m pip install setuptools --upgrade
# python -m pip install wheel --upgrade
# python setup.py install

# - name: Install mypy
# run: |
# python -m pip install git+https://github.com/lmbelo/mypy.git

# - name: Build Stubs
# run: |
# python -m mypy.stubgen -m delphifmx -o ./delphifmx --include-docstrings
# mv delphifmx/delphifmx.pyi delphifmx/__init__.pyi

# - name: Cache Stubs
# id: cache-stubs
# uses: actions/cache@v3
# with:
# path: ./delphifmx/__init__.pyi
# key: ${{ runner.os }}-stubs

#This build makes delphifmx available for Android
build_universal_wheel:
Expand Down Expand Up @@ -316,7 +317,7 @@ jobs:
uses: actions/cache@v3
with:
path: .\delphifmx\__init__.pyi
key: ${{ runner.os }}-stubs
key: Linux-stubs

- name: Check Stubs
run: |
Expand Down Expand Up @@ -361,7 +362,7 @@ jobs:
uses: actions/cache@v3
with:
path: .\delphifmx\__init__.pyi
key: ${{ runner.os }}-stubs
key: Linux-stubs

- name: Check Stubs
run: |
Expand Down

0 comments on commit ebac2c2

Please sign in to comment.