Skip to content

Commit b60de44

Browse files
committed
Fix test pipeline
1 parent 4ba4d16 commit b60de44

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@ jobs:
3434
#----------------------------------------------
3535
- run: python -m pip install black flake8 isort
3636
- run: |
37-
flake8 ./finterion_investing_algorithm_framework
37+
flake8 ./investing_algorithm_framework
3838
test:
3939
needs: linting
4040
strategy:
4141
fail-fast: true
4242
matrix:
4343
os: [ "ubuntu-latest", "macos-latest" ]
44-
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
44+
python-version: [ "3.10", "3.11" ]
45+
defaults:
46+
run:
47+
shell: bash
4548
runs-on: ${{ matrix.os }}
4649
steps:
4750
#----------------------------------------------
@@ -55,11 +58,21 @@ jobs:
5558
with:
5659
python-version: ${{ matrix.python-version }}
5760
#----------------------------------------------
61+
# ----- install distutils if needed -----
62+
#----------------------------------------------
63+
- name: Install distutils on Ubuntu
64+
if: matrix.os == 'ubuntu-latest'
65+
run: |
66+
sudo add-apt-repository ppa:deadsnakes/ppa
67+
sudo apt-get update
68+
sudo apt install python${{ matrix.python-version }}-distutils
69+
#----------------------------------------------
5870
# ----- install & configure poetry -----
5971
#----------------------------------------------
6072
- name: Install Poetry
6173
uses: snok/install-poetry@v1
6274
with:
75+
version: 1.7.1
6376
virtualenvs-create: true
6477
virtualenvs-in-project: true
6578
#----------------------------------------------
@@ -76,18 +89,20 @@ jobs:
7689
#----------------------------------------------
7790
- name: Install dependencies
7891
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
79-
run: poetry install --no-interaction --no-root
92+
run: |
93+
poetry install --no-interaction --no-root
8094
#----------------------------------------------
8195
# install your root project, if required
8296
#----------------------------------------------
8397
- name: Install library
84-
run: poetry install --no-interaction
98+
run: |
99+
poetry install --no-interaction
85100
#----------------------------------------------
86101
# add matrix specifics and run test suite
87102
#----------------------------------------------
88103
- name: Run tests
89104
run: |
90-
source .venv/bin/activate
105+
source $VENV
91106
coverage run -m unittest discover -s tests
92107
# #----------------------------------------------
93108
# # upload coverage stats

0 commit comments

Comments
 (0)