Skip to content

unit_test

unit_test #2

Workflow file for this run

name: mashpit test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Download and set up ncbi datasets client
run: |
curl -o datasets 'https://ftp.ncbi.nlm.nih.gov/pub/datasets/command-line/v2/linux-amd64/datasets'
chmod +x datasets
echo "export PATH=$PATH:./datasets" >> $GITHUB_ENV
- name: Install pytest
run: |
pip install pytest
- name: Change directory to subfolder
run: cd mashpit/test
- name: Run tests
run: |
pytest test.py