Updated CI config to access env variable

This commit is contained in:
Antoine Nguyen
2024-07-10 15:11:50 +02:00
parent 6739f4aaac
commit 05d521704d
+4
View File
@@ -26,6 +26,7 @@ env:
jobs:
test:
runs-on: ubuntu-latest
environment: test
services:
postgres:
image: postgres:12
@@ -123,6 +124,7 @@ jobs:
REDIS_HOST: localhost
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
LDAP_SERVER_PORT: ${{ job.services.openldap.ports[389] }}
OIDC_RSA_PRIVATE_KEY: ${{ vars.OIDC_RSA_PRIVATE_KEY }}
- name: Test with pytest and coverage
if: ${{ matrix.python-version == '3.11' && matrix.database == 'postgres' }}
@@ -143,6 +145,8 @@ jobs:
REDIS_HOST: localhost
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
LDAP_SERVER_PORT: ${{ job.services.openldap.ports[389] }}
OIDC_RSA_PRIVATE_KEY: ${{ vars.OIDC_RSA_PRIVATE_KEY }}
- name: Upload coverage result
if: ${{ matrix.python-version == '3.11' && matrix.database == 'postgres' }}
uses: actions/upload-artifact@v4