unittest #7
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: 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 |