unittest #11
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 }} | |
cache: 'pip' | |
# printing the current Python version | |
- 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 | |
mv datasets $HOME/.local/bin | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Check datasets location | |
run: ls -l $HOME/.local/bin/datasets | |
- name: Check PATH | |
run: echo $PATH | |
- name: Run datasets | |
run: datasets --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: Install pytest | |
run: | | |
pip install pytest | |
- name: Run tests | |
working-directory: mashpit/test | |
run: | | |
pytest test.py |