-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (44 loc) · 1.11 KB
/
code_changes.yaml
File metadata and controls
48 lines (44 loc) · 1.11 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
# Workflow that runs on code changes after merge to main.
name: Code changes
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
paths:
- pyproject.toml
jobs:
Lint:
uses: ./.github/workflows/reusable_lint.yaml
Test:
needs: Lint
uses: ./.github/workflows/reusable_test.yaml
with:
full_suite: true
upload_data: true
deploy_docs: true
secrets: inherit
Publish:
runs-on: ubuntu-latest
needs: [Lint, Test]
if: github.event.head_commit.message == 'Update package version'
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install package
run: uv sync --dev
- name: Build package
run: uv run python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}
skip-existing: true