Skip to content

Commit e94ef7b

Browse files
committed
fix: pyactions with poetry
1 parent efb000f commit e94ef7b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/python-app.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ jobs:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Install Python dependencies
3232
run: |
33-
pip install spid-sp-test>=1.2.17
34-
pip install flake8
35-
- name: Ispect Python dependencies
33+
pip install --upgrade pip
34+
pip install flake8 pipx poetry
35+
pip install --upgrade packaging
36+
poetry install
37+
source $(poetry env info | grep -m1 Path | awk -F" " {'print $2'})/bin/activate
38+
pip install "spid-sp-test>=1.2.17"
39+
- name: Inspect Python dependencies
3640
run: |
37-
pip list
41+
poetry show --tree
3842
- name: Lint with flake8
3943
run: |
4044
## stop the build if there are Python syntax errors or undefined names
@@ -65,13 +69,19 @@ jobs:
6569
- name: spid-sp-test SPID metadata, requests and responses
6670
run: |
6771
cd Docker-compose/satosa-project
72+
source $(poetry env info | grep -m1 Path | awk -F" " {'print $2'})/bin/activate
73+
export PATH=$PATH:$(poetry env info | grep -m1 Path | awk -F" " {'print $2'})/bin
6874
spid_sp_test --idp-metadata > metadata/idp/spid-sp-test.xml
6975
spid_sp_test --metadata-url https://localhost/spidSaml2/metadata --authn-url "http://localhost:8000/saml2/login/?idp=https://localhost/Saml2IDP/metadata&next=/saml2/echo_attributes&idphint=https%253A%252F%252Flocalhost%253A8443" -ap spid_sp_test.plugins.authn_request.SatosaSaml2Spid --extra --debug ERROR -tr
7076
- name: spid-sp-test CIE id metadata
7177
run: |
7278
cd Docker-compose/satosa-project
79+
source $(poetry env info | grep -m1 Path | awk -F" " {'print $2'})/bin/activate
80+
export PATH=$PATH:$(poetry env info | grep -m1 Path | awk -F" " {'print $2'})/bin
7381
spid_sp_test --profile cie-sp-public --metadata-url https://localhost/cieSaml2/metadata
7482
- name: spid-sp-test eIDAS FiCEP metadata
7583
run: |
7684
cd Docker-compose/satosa-project
85+
source $(poetry env info | grep -m1 Path | awk -F" " {'print $2'})/bin/activate
86+
export PATH=$PATH:$(poetry env info | grep -m1 Path | awk -F" " {'print $2'})/bin
7787
spid_sp_test --profile ficep-eidas-sp --metadata-url https://localhost/spidSaml2/metadata

0 commit comments

Comments
 (0)