forked from DivyaKarade/OmicLearn
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
furkanmtorun
committed
Apr 27, 2023
1 parent
f91792d
commit c5161a0
Showing
1 changed file
with
31 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,39 @@ | ||
# OmicLearn Tests CI | ||
name: OmicLearn Tests | ||
|
||
on: | ||
'on': | ||
push: | ||
branches: [ master ] | ||
branches: | ||
- master | ||
pull_request: | ||
branches: "*" | ||
|
||
branches: '*' | ||
jobs: | ||
omiclearn_tests: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest]t | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
ENVIRONMENT_STAGE: production | ||
# 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 | ||
- 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 |