Skip to content

invalid secret test #18

invalid secret test

invalid secret test #18

Workflow file for this run

name: CICD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11.4"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
cd tests/unit/
pytest -v --cov
integration-test:
needs: unit-test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11.4"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
env:
ENV: TEST
DATABASE_URL: postgresql+psycopg2://postgres:1234@localhost:5432/test
run: |
cd tests/integration/
pytest -v --cov
print-secrets:
runs-on: ubuntu-latest
steps:
- name: Print Secret
run: |
echo "The value of secret TEST is ${{ secrets.TEST }}"

Check failure on line 77 in .github/workflows/cicd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd.yml

Invalid workflow file

You have an error in your yaml syntax on line 77
echo "The value of secret TESTX is ${{ secrets.TESTX }}"