-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It contains a lot of fixes to make it work in updated CI environment.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] |