CI Change #18
Workflow file for this run
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: OmicLearn Tests | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: '*' | ||
jobs: | ||
omiclearn_tests: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest]t | ||
runs-on: ${{ matrix.os }} | ||
# Steps | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
architecture: x64 | ||
cache: pip | ||
- name: Display Python version | ||
run: python --version | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
if [ -f reqs.txt ]; then pip install -r reqs.txt; fi | ||
pip install . | ||
- name: List the installed packages | ||
run: pip list | ||
- name: Run black formatting check | ||
run: black --check . | ||
- name: Run isort sorting check | ||
run: isort --profile black --check-only . | ||
- name: Run tests | ||
run: | | ||
cd tests/ | ||
pytest test_helper.py |