Repository navigation
Expand file tree
/
Copy pathhyperforge_static_string_workflow.yaml
More file actions
90 lines (76 loc) · 2.73 KB
/
Copy pathhyperforge_static_string_workflow.yaml
File metadata and controls
90 lines (76 loc) · 2.73 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Static String Agents Tests
on:
push:
branches:
- main
- dev
paths:
- "agents/static_string/**"
- "hyperforge.mk"
- ".github/workflows/hyperforge_static_string_workflow.yaml"
- ".github/workflows/hyperforge_agent_package_workflow.yaml"
pull_request:
branches:
- main
- dev
paths:
- "agents/static_string/**"
- "hyperforge.mk"
- ".github/workflows/hyperforge_static_string_workflow.yaml"
- ".github/workflows/hyperforge_agent_package_workflow.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
name: Test agents/static_string
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: false
python-version: "3.12"
- name: Install package dependencies with uv
run: uv sync --group dev
- name: Lint
working-directory: agents/static_string
run: make lint
- name: Run tests
working-directory: agents/static_string
run: make test
build_wheels:
name: Build wheels
runs-on: ubuntu-24.04
if: github.event_name == 'push'
needs:
- test
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: false
python-version: "3.12"
- name: Set dependency versions in requirements
run: |
python bump.py --package=${INPUTS_PACKAGE} --build=${{ github.run_number }}
env:
INPUTS_PACKAGE: agents/static_string
- name: Build wheels
run: uv build ./${INPUTS_PACKAGE}
env:
INPUTS_PACKAGE: agents/static_string
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2