Skip to content

ci(workflows): pin GitHub Actions dependencies to commit SHAs #39

ci(workflows): pin GitHub Actions dependencies to commit SHAs

ci(workflows): pin GitHub Actions dependencies to commit SHAs #39

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
services:
falkordb:
image: falkordb/falkordb:v4.16.6
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "0.7.12"
- name: Install dependencies
run: uv sync
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies
working-directory: frontend
run: npm ci
- name: Build frontend
working-directory: frontend
run: npm run build
- name: Run unit tests
run: uv run python -m pytest tests/ -v --tb=short -m "not integration" --cov=depgraph
- name: Run integration tests
run: uv run python -m pytest tests/ -v --tb=short -m "integration"