Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 22, 2023
1 parent 6ade95c commit 4865fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,19 @@ jobs:
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ hashFiles('requirements/*.txt') }}
restore-keys: |
${{ runner.os }}-pip-py${{ matrix.python-version }}-
restore-keys: ${{ runner.os }}-pip-py${{ matrix.python-version }}-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U pip wheel;
pip install -r requirements/install.txt -r requirements/install_async.txt -r requirements/unittests.txt --extra-index-url https://download.pytorch.org/whl/cpu;
pip install -U pip wheel
pip install -r requirements/install.txt -r requirements/install_async.txt -r requirements/unittests.txt --extra-index-url https://download.pytorch.org/whl/cpu
pip install --no-deps .
- name: Run Tests
run: |
coverage run -m unittest
run: coverage run -m unittest

- name: Statistics
if: success()
run: |
coverage report
coverage xml
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@


def resolve_requirements(file):
path_dir = os.path.dirname(file)
requirements = []
with open(file) as f:
req = f.read().splitlines()
for r in req:
r_path = os.path.join(path_dir, r.split(" ")[1])
if r.startswith("-r"):
r_path = os.path.join(os.path.dirname(file), r.split(" ")[1])
requirements += resolve_requirements(r_path)
else:
requirements.append(r)
Expand Down

0 comments on commit 4865fed

Please sign in to comment.