Skip to content

unittest

unittest #7

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: |
mkdir ncbi_datasets
curl -o ncbi_datasets/datasets 'https://ftp.ncbi.nlm.nih.gov/pub/datasets/command-line/v2/linux-amd64/datasets'
chmod +x ncbi_datasets/datasets
echo "export PATH=$PATH:$PWD/ncbi_datasets" >> $GITHUB_ENV
which datasets
- name: Install pytest
run: |
pip install pytest
- name: Run tests
working-directory: mashpit/test
run: |
which datasets
pytest test.py