Skip to content

Commit

Permalink
Remove macOS tests. (#792)
Browse files Browse the repository at this point in the history
* Remove tests for macOS and document that macOS is not supported.
  • Loading branch information
jendrikseipp authored Dec 22, 2024
1 parent a56eabf commit 79f2a1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 91 deletions.
68 changes: 0 additions & 68 deletions .github/workflows/macos.yml

This file was deleted.

26 changes: 3 additions & 23 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
os: [macos-13, ubuntu-22.04, ubuntu-24.04]
os: [ubuntu-22.04, ubuntu-24.04]

steps:
- uses: actions/checkout@v4
Expand All @@ -31,38 +31,18 @@ jobs:
python3 --version
python3 -c "import multiprocessing as m; print('CPUs:', m.cpu_count())"
- name: Install dependencies (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install -qq gettext gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0 gir1.2-gtk-3.0 gir1.2-gtksource-4 gir1.2-pango-1.0 gir1.2-webkit2-4.1 python3 python3-enchant python3-gi python3-setuptools python3-yaml tox
- name: Install dependencies (macOS)
if: startsWith(matrix.os, 'macos')
run: |
# We need pygobject from PyPI. Using only pygobject3 from homebrew leads to "gi module not found".
# Homebrew complains about [email protected] files that are overwritten, so we remove them.
# Some can be removed by unlinking [email protected], others need to be removed manually.
brew unlink [email protected]
brew link --overwrite [email protected]
sudo rm -r /usr/local/bin/2to3 /usr/local/bin/idle3 /usr/local/bin/pydoc3 /usr/local/bin/python3 /usr/local/bin/python3-config /usr/local/share/man/man1/python3.1 /usr/local/lib/pkgconfig/python3-embed.pc /usr/local/lib/pkgconfig/python3.pc /usr/local/Frameworks/Python.framework/Headers /usr/local/Frameworks/Python.framework/Python /usr/local/Frameworks/Python.framework/Resources /usr/local/Frameworks/Python.framework/Versions/Current
brew install gettext gobject-introspection gtk+3 libffi cairo gtksourceview3 librsvg adwaita-icon-theme enchant
# Removing the Python files above makes pip complain about "managed environments", so we need to "break system packages".
python3 -m pip install --break-system-packages pyenchant pygobject pyyaml
python3 -m pip install --break-system-packages setuptools tox
env:
# https://docs.brew.sh/Manpage#install-options-formulacask-
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: on
HOMEBREW_NO_INSTALL_CLEANUP: on
HOMEBREW_NO_INSTALL_UPGRADE: on

- name: Check style
if: matrix.os == 'ubuntu-24.04'
run: |
tox -v -e style
- name: Run tests
if: matrix.os == 'ubuntu-24.04' # pip on macOS needs --break-system-packages
if: matrix.os == 'ubuntu-24.04'
run: |
python3 -c "import gi"
tox -v -e py
Expand Down
1 change: 1 addition & 0 deletions web/src/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ <h4>Windows</h4>
<h4>MacOS</h4>
<div class="details">
<ul>
<li><strong>Important:</strong> There is currently no official support for macOS. However, you can try the following on your own:</li>
<li><a href="https://github.com/jendrikseipp/rednotebook/blob/master/dev/mac-homebrew.md">Install RedNotebook using Homebrew</a></li>
<!--
<li>
Expand Down

0 comments on commit 79f2a1e

Please sign in to comment.