[#2]: add first version of GitHub CI/CD conf: do setup, run uv sync
#7
This file contains hidden or 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
--- | |
# build.yaml | |
# | |
# GitHub CI/CD build configuration. | |
# | |
# author : stefan schablowski | |
# contact : stefan.schablowski@desmodyne.com | |
# created : 2025-03-23 | |
# uv > Using uv in GitHub Actions: | |
# https://docs.astral.sh/uv/guides/integration/github | |
name: Build | |
on: [push] | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
- uses: actions/checkout@v4 | |
- name: Set up uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: 0.6.9 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: code/python/pyproject.toml | |
- name: Run `uv sync` | |
run: uv sync --directory code/python |