CI: Use verbose PyTest output #206
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
name: Run Tests | |
on: push | |
env: | |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 | |
jobs: | |
build: | |
name: Test LaTeX Bundle | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Skim | |
run: brew install --cask skim | |
- name: Install and open TextMate | |
run: | | |
brew install TextMate | |
mkdir -p "$HOME/Library/Application Support/TextMate/Managed/Bundles" | |
pushd "$HOME/Library/Application Support/TextMate/Managed/Bundles" | |
bundles=(Bundle-Support CSS HTML Java JavaScript JavaDoc Python R Sql) | |
for bundle in ${bundles[@]}; do | |
name=$(printf "$bundle" | sed 's/-/ /') | |
gh repo clone "textmate/$bundle.tmbundle" "$name.tmbundle" | |
done | |
open /Applications/TextMate.app | |
popd | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- name: Install BasicTeX | |
run: | | |
brew update | |
brew install basictex | |
- name: Install TeX packages | |
run: | | |
eval "$(/usr/libexec/path_helper)" | |
printf '/Library/TeX/texbin' >> $GITHUB_PATH | |
sudo tlmgr update --self | |
sudo tlmgr install --with-doc \ | |
biber \ | |
biblatex \ | |
csquotes \ | |
datatool \ | |
framed \ | |
glossaries \ | |
latexmk \ | |
logreq \ | |
luacode \ | |
mfirstuc \ | |
substr \ | |
supertabular \ | |
texdoc \ | |
texdoctk \ | |
upmethodology \ | |
xfor \ | |
xstring | |
- name: Install required Python packages for LaTeX bundle | |
run: pip3 install pyobjc | |
- name: Install required Python packages for testing | |
run: pip3 install flake8 'prysk[pytest-plugin]' pytest-timeout | |
- name: Install tools required for tests | |
run: | | |
pushd "$HOME/Downloads" | |
brew install pidof | |
brew install boost capnp google-sparsehash multimarkdown ninja ragel | |
git clone --recursive https://github.com/textmate/textmate.git | |
cd textmate | |
echo > local.rave "add FLAGS \"-I$(brew --prefix)/include\"" | |
echo >> local.rave "add LN_FLAGS \"-L$(brew --prefix)/lib\"" | |
export builddir="${PWD}/build" | |
gtm="${PWD}/build/release/Applications/gtm/gtm" | |
entitlements="${PWD}/entitlements.plist" | |
mkdir -p "$builddir" | |
./configure | |
ninja gtm | |
# Work around error about different Team IDs for mapping process/file | |
codesign --remove-signature "${gtm}" | |
defaults write "${entitlements}" \ | |
com.apple.security.cs.disable-library-validation -bool true | |
plutil -convert xml1 "${entitlements}" | |
codesign --sign - --force --options runtime --timestamp \ | |
--entitlements "${entitlements}" "${gtm}" | |
mv "${gtm}" /usr/local/bin | |
popd | |
- name: Run Python tests | |
run: make pytests |