Skip to content

Made repository name lowercase #16

Made repository name lowercase

Made repository name lowercase #16

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 }}
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/d-fine/datalandqalab/qalab-server:${{ github.sha }}