Skip to content

Update test_DesiRNA.yml #74

Update test_DesiRNA.yml

Update test_DesiRNA.yml #74

Workflow file for this run

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.10", 3.11, 3.12]
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: Install dependencies on macOS
if: runner.os == 'macos'
run: |
brew install gettext
brew link --force gettext
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64' # Explicitly set the architecture to x64
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20.x'
- 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 Python 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
- name: Set failed status if tests failed
if: ${{ failure() }}
run: exit 1