Skip to content

Commit

Permalink
Ignoring black,isort for now, added pytest install
Browse files Browse the repository at this point in the history
  • Loading branch information
Terézia Slanináková committed Mar 18, 2024
1 parent 5342629 commit 62b6bd5
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
# Sequence of patterns matched against refs/heads
branches:
# Push events on main and dev branch
- main
- dev
- dynamic-lmi
# Sequence of patterns matched against refs/tags
tags: '*'
Expand Down Expand Up @@ -40,44 +38,6 @@ jobs:
shellcheck scripts/core/*.sh
shell: bash

black:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check Python version
run: python --version

- name: Install Black
run: |
pip install black==23.7.0
shell: bash

- name: Check code formatting with Black
run: |
black -v --check .
shell: bash

flake8:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check Python version
run: python --version

- name: Install Flake8
run: |
pip install flake8==6.1.0
shell: bash

- name: Check code with Flake8
run: |
flake8 -vv search/**/*.py
shell: bash

test:
name: ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -111,7 +71,7 @@ jobs:
run: |
conda create -n env python=3.8
conda activate env
conda install matplotlib pandas scikit-learn
conda install matplotlib pandas scikit-learn pytest
pip install h5py setuptools tqdm faiss-cpu
pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Run tests
Expand Down

0 comments on commit 62b6bd5

Please sign in to comment.