-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into etang/finetuning-logging
- Loading branch information
Showing
7 changed files
with
85 additions
and
23 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: premerge | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
|
||
# Install pre-commit dependencies | ||
- name: Install pre-commit | ||
run: pip install pre-commit==3.8.0 jupyter==1.1.1 | ||
|
||
# Run pre-commit hooks with verbose logging | ||
- name: Run pre-commit | ||
run: pre-commit run --all-files --verbose | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 | ||
|
||
- name: Install pre-commit | ||
run: pip install jupyter==1.1.1 | ||
|
||
- name: Build | ||
run: bash -ec "(cd ci; go install ./...)" | ||
|
||
- name: Check go format | ||
run: bash -ec "(cd ci; go fmt ./... ; git diff --exit-code)" | ||
|
||
- name: Test | ||
run: bash -ec "(cd ci; go test -v ./...)" | ||
|
||
- name: Build templates | ||
run: bash build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,3 +164,7 @@ cython_debug/ | |
|
||
# Vim | ||
*.swp | ||
|
||
# Build output | ||
_build/ | ||
ci/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
echo "--- Building maketmpl" | ||
mkdir -p ci/bin | ||
(cd ci; go build -o bin/maketmpl ./maketmpl/maketmpl) | ||
|
||
echo "--- Building template releases" | ||
rm -rf _build | ||
exec ci/bin/maketmpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/anyscale/templates/ci | ||
|
||
go 1.23.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package maketmpl | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
func Hello() { | ||
fmt.Println("TODO: build templates the new way.") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/anyscale/templates/ci/maketmpl" | ||
) | ||
|
||
func main() { | ||
maketmpl.Hello() | ||
} |