Skip to content

Commit

Permalink
ci: update macos workflow from main
Browse files Browse the repository at this point in the history
It contains a lot of fixes to make it work in updated CI environment.
  • Loading branch information
nijel committed Mar 26, 2024
1 parent 07afd41 commit d186392
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,28 @@ jobs:
PYTHONUNBUFFERED: 1
PYTHONWARNINGS: default,ignore:unclosed:ResourceWarning
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
HOMEBREW_NO_INSTALL_UPGRADE: 1
steps:
- uses: actions/checkout@v4
- run: brew update
- name: Install Python
run: brew link --overwrite python
- run: brew list --versions
- run: brew deps --tree --installed
- name: Fix Python
# Workaround for https://github.com/actions/setup-python/issues/577
run: |
brew uninstall --ignore-dependencies [email protected]
brew unlink [email protected]
rm -f /usr/local/bin/{2to3,idle3,pydoc3,python3,python3-config}
brew link --overwrite [email protected]
- name: Install brew dependencies
run: |
# Workaround for https://github.com/xmlsec/python-xmlsec/issues/254
wget -O /tmp/libxmlsec1.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/7f35e6ede954326a10949891af2dba47bbe1fc17/Formula/libxmlsec1.rb
brew install --formula /tmp/libxmlsec1.rb
brew pin libxmlsec1
brew install pango cairo gobject-introspection glib libyaml pkg-config zstd xxhash
brew install python pango cairo gobject-introspection glib libyaml pkg-config zstd xxhash
- name: Install Weblate
run: pip3 install -e .[all,test]
run: |
python3 -m venv .venv
.venv/bin/pip3 install -e .[all,test]

0 comments on commit d186392

Please sign in to comment.