-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (33 loc) · 888 Bytes
/
Copy pathvalidate.yml
File metadata and controls
44 lines (33 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Validate
on:
pull_request:
branches: [main]
merge_group:
branches: [main]
workflow_dispatch:
# Minimal permissions for this workflow
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Setup Nix development environment
uses: nicknovitski/nix-develop@v1
- name: Install Python dependencies
run: uv sync --extra dev
- name: Check formatting (ruff)
run: |
ruff format --check src/ tests/
ruff check src/ tests/
- name: Run tests
run: pytest tests/ -v
- name: Build deepwork package
run: nix build
- name: Verify package output
run: |
ls -la result/bin/deepwork
./result/bin/deepwork --version