Skip to content

Add missing environment variables to CD pipeline #28

Add missing environment variables to CD pipeline

Add missing environment variables to CD pipeline #28

Workflow file for this run

---
name: CI
on:
push:
branches:
- '**'
jobs:
validate:
runs-on: ubuntu-latest
env:
DATALAND_URL: ${{ vars.DATALAND_URL }}
DATALAND_API_KEY: ${{ secrets.DATALAND_API_KEY }}
AZURE_OPENAI_API_KEY: "null"
AZURE_OPENAI_ENDPOINT: "null"
AZURE_DOCINTEL_API_KEY: "null"
AZURE_DOCINTEL_ENDPOINT: "null"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Generate API clients
run: ./bin/generate_dataland_api_clients.sh
- name: Install dependencies
run: pdm install
- name: Check formatting
run: pdm run ruff format --check
- name: Check linting
if: always()
run: pdm run ruff check
- name: Run tests
if: always()
run: pdm run test-cov
- name: Run doctests
if: always()
run: pdm run doctest-cov
- name: Export coverage
if: always()
run: pdm run combine-coverage && pdm run export-coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}}