Skip to content

Commit

Permalink
DEBUG: run sharedlib Windows jobs on fork
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Oct 27, 2024
1 parent ce32f09 commit fe65bd9
Showing 1 changed file with 1 addition and 135 deletions.
136 changes: 1 addition & 135 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- main
- release-*
- test-sharedlib-windows
pull_request:
branches:
- main
Expand Down Expand Up @@ -41,13 +42,11 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
# actions/setup-python do not support Python 3.7 on macOS on
# arm64. The latest macOS version available is macOS 14 but
# it is arm64 only. Stick to macos-13 as long as we want to
# test Python 3.7 on macOS. macOS 14 on arm64 is covered by
# the Cirrus CI jobs.
- macos-13
- windows-latest
python:
- '3.7'
Expand All @@ -57,54 +56,9 @@ jobs:
pyproject_metadata:
-
include:
- os: ubuntu-latest
python: 'pypy-3.9'
- os: ubuntu-latest
python: 'pypy-3.10'
- os: ubuntu-latest
python: '3.8'
- os: ubuntu-latest
python: '3.9'
- os: ubuntu-latest
python: '3.10'
# Test with older supported Meson version. Meson up to
# version 1.2.3 requires distutils, which has been removed
# from the stdlib in Python 3.12, thus test with Pythn 3.11.
- os: ubuntu-latest
python: '3.11'
meson: '~=0.63.3'
- os: ubuntu-latest
python: '3.11'
meson: '~=0.64.0'
- os: ubuntu-latest
python: '3.11'
meson: '~=1.0.0'
- os: ubuntu-latest
python: '3.11'
meson: '~=1.1.0'
- os: ubuntu-latest
python: '3.12'
meson: '~=1.2.3'
- os: ubuntu-latest
python: '3.12'
meson: '~=1.3.0'
- os: ubuntu-latest
python: '3.12'
meson: '~=1.4.0'
- os: ubuntu-latest
python: '3.12'
meson: '~=1.5.0'
# Test with Meson master branch.
- os: ubuntu-latest
python: '3.12'
meson: '@git+https://github.com/mesonbuild/meson.git'
- os: windows-latest
python: '3.12'
meson: '@git+https://github.com/mesonbuild/meson.git'
# Test with oldest supported pyproject-metadata
- os: ubuntu-latest
python: '3.12'
pyproject_metadata: '==0.8.0'

steps:
- name: Checkout
Expand Down Expand Up @@ -259,91 +213,3 @@ jobs:
run: python -m pytest --showlocals -vv
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0}

pyston:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python:
- '3.8'
meson:
-

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pyston
run: |
wget https://github.com/pyston/pyston/releases/download/pyston_2.3.5/pyston_2.3.5_20.04_amd64.deb
sudo apt install $(pwd)/pyston_2.3.5_20.04_amd64.deb
- name: Install Ninja
run: sudo apt-get install ninja-build

- name: Install Meson
run: python -m pip install "meson ${{ matrix.meson }}"
if: ${{ matrix.meson }}

- name: Install
run: pyston -m pip install .[test]

- name: Run tests
run: pyston -m pytest --showlocals -vv

homebrew:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python:
- '3.9'
- '3.12'
meson:
-

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Homebrew Python
run: |
brew install --overwrite python@${{ matrix.python }}
echo /usr/local/opt/python@${{ matrix.python }}/libexec/bin/ >> $GITHUB_PATH
- name: Install Ninja
run: brew install ninja

- name: Update pip
# pip >= 23.0 fixes https://github.com/pypa/pip/issues/11539
run: python -m pip install --upgrade "pip >= 23.0"

- name: Install Meson
run: python -m pip install "meson ${{ matrix.meson }}"
if: ${{ matrix.meson }}

- name: Install
run: python -m pip install .[test]

- name: Run tests
run: python -m pytest --showlocals -vv

mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install dependencies
run: python -m pip install .

- name: Install mypy
run: python -m pip install mypy==1.5.1

- name: Run mypy
run: mypy -p mesonpy

0 comments on commit fe65bd9

Please sign in to comment.