fix path and streamline pip installs
Browse files- .github/workflows/tests.yml +4 -4
- requirements-tests.txt +2 -0
.github/workflows/tests.yml
CHANGED
|
@@ -15,14 +15,14 @@ jobs:
|
|
| 15 |
with:
|
| 16 |
python-version: "3.9"
|
| 17 |
|
| 18 |
-
- name: Install pytest
|
| 19 |
-
run: |
|
| 20 |
-
pip install --upgrade pytest
|
| 21 |
-
|
| 22 |
- name: Install dependencies
|
| 23 |
run: |
|
| 24 |
pip install -r requirements-tests.txt
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
- name: Run tests
|
| 27 |
run: |
|
| 28 |
pytest tests/
|
|
|
|
| 15 |
with:
|
| 16 |
python-version: "3.9"
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
- name: Install dependencies
|
| 19 |
run: |
|
| 20 |
pip install -r requirements-tests.txt
|
| 21 |
|
| 22 |
+
- name: set pythonpath
|
| 23 |
+
run: |
|
| 24 |
+
echo "PYTHONPATH=src/axolotl" >> $GITHUB_ENV
|
| 25 |
+
|
| 26 |
- name: Run tests
|
| 27 |
run: |
|
| 28 |
pytest tests/
|
requirements-tests.txt
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
peft @ git+https://github.com/huggingface/peft.git
|
| 2 |
transformers @ git+https://github.com/huggingface/transformers.git
|
| 3 |
bitsandbytes>=0.39.0
|
|
|
|
| 1 |
+
pytest
|
| 2 |
+
# this is a stripped down version so it doesn't try to install some of the things like xformers or others that may require compilation
|
| 3 |
peft @ git+https://github.com/huggingface/peft.git
|
| 4 |
transformers @ git+https://github.com/huggingface/transformers.git
|
| 5 |
bitsandbytes>=0.39.0
|