Skip to content

Commit

Permalink
CI Change
Browse files Browse the repository at this point in the history
  • Loading branch information
furkanmtorun committed Apr 27, 2023
1 parent f91792d commit c5161a0
Showing 1 changed file with 31 additions and 34 deletions.
65 changes: 31 additions & 34 deletions .github/workflows/OmicLearn_tests.yml
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

0 comments on commit c5161a0

Please sign in to comment.