Skip to content

Commit

Permalink
Build cffi wheel before running tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 8, 2024
1 parent 0e48407 commit be6f78b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,23 @@ jobs:
with:
python-version: "3.8"

- name: Install dependencies 🔧
- name: Install dependencies (Linux) 🔧
if: ${{ matrix.os == 'ubuntu-20.04' && steps.changes.outputs.code == 'true' }}
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
python -m pip wheel git+https://github.com/python-cffi/cffi
- name: Install dependencies (Windows) 🔧
if: ${{ matrix.os != 'ubuntu-20.04' && steps.changes.outputs.code == 'true' }}
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
python -m pip wheel git+https://github.com/python-cffi/cffi
- name: "Run mypy"
if: steps.changes.outputs.code == 'true'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
python -m pip wheel git+https://github.com/python-cffi/cffi
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
if: steps.setup-python.outcome == 'success'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
python -m pip install --upgrade coverage_pyver_pragma
python -m pip wheel git+https://github.com/python-cffi/cffi
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
if: steps.setup-python.outcome == 'success'
Expand Down
8 changes: 8 additions & 0 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,13 @@ extras_require:
editable:
- editables>=0.2

github_ci_requirements:
Linux:
post:
- python -m pip wheel git+https://github.com/python-cffi/cffi
Windows:
post:
- python -m pip wheel git+https://github.com/python-cffi/cffi

exclude_files:
- contributing

0 comments on commit be6f78b

Please sign in to comment.