Update test_DesiRNA.yml #83
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: DesiRNA Tests | |
on: | |
push: | |
branches: [main, refactoring] | |
pull_request: | |
branches: [main, refactoring] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04, macos-latest] | |
python-version: [3.7, 3.8, 3.9, 3.11] | |
steps: | |
- name: Increase Git Config core.longpaths | |
if: runner.os == 'Windows' | |
run: git config --system core.longpaths true | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20.x' | |
- name: Check Homebrew installation and config | |
if: runner.os == 'macos' | |
run: | | |
which brew | |
brew --version | |
brew doctor | |
- name: Configure Homebrew and gettext | |
if: runner.os == 'macos' | |
run: | | |
brew install gettext | |
brew link --force gettext | |
GETTEXT_PATH=$(brew --prefix gettext) | |
sudo mkdir -p $GETTEXT_PATH/lib | |
sudo ln -sf $GETTEXT_PATH/lib/libintl.8.dylib /usr/local/lib/ | |
echo "export PATH=\"$GETTEXT_PATH/bin:\$PATH\"" >> $GITHUB_ENV | |
echo "export LDFLAGS=\"-L$GETTEXT_PATH/lib\"" >> $GITHUB_ENV | |
echo "export CPPFLAGS=\"-I$GETTEXT_PATH/include\"" >> $GITHUB_ENV | |
echo "export DYLD_LIBRARY_PATH=\"$GETTEXT_PATH/lib:\$DYLD_LIBRARY_PATH\"" >> $GITHUB_ENV | |
- name: Debug environment settings | |
if: runner.os == 'macos' | |
run: | | |
echo "Checking DYLD_LIBRARY_PATH:" | |
echo $DYLD_LIBRARY_PATH | |
ls -l $GETTEXT_PATH/lib/ | |
ls -l /usr/local/lib/libintl.8.dylib | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 # Explicitly specify architecture if necessary | |
- name: Cache pip dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
shell: bash | |
- name: Run DesiRNA tests | |
run: bash ./tests/test_DesiRNA.sh | |
- name: Run DesiRNA error handling tests | |
run: bash ./tests/test_DesiRNA_errors.sh |