Docker Deployment for Kelvin core #139
Workflow file for this run
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
name: Test Python | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libgraphviz-dev | |
python -m pip install --upgrade pip | |
pip install uv==0.4.4 | |
# Use the legacy lockfile to battle test it | |
uv pip sync --system requirements.txt | |
# Update output format to enable automatic inline annotations. | |
- name: Lint Python code | |
run: ruff check --output-format=github | |
- name: Check Python formatting | |
run: ruff format --check | |
# Check that the lockfile does not need to be updated | |
# If this fails, run `uv export --format requirements-txt > requirements.txt`. | |
- name: Check lockfile | |
run: | | |
uv lock --locked | |
uv export --format requirements-txt > requirements.txt.locked | |
diff requirements.txt requirements.txt.locked |