File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : publish package
2+ permissions :
3+ contents : read
4+ pull-requests : write
5+
6+ on :
7+ push :
8+ tags :
9+ - " v*"
10+
11+ jobs :
12+ deploy :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Install apt dependencies
16+ run : |
17+ sudo apt-get update
18+ sudo apt-get install libcurl4-openssl-dev libssl-dev
19+ - uses : actions/checkout@v4.2.2
20+
21+ - name : Install uv
22+ uses : astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04
23+ with :
24+ # Install a specific version of uv.
25+ version : " 0.7.6"
26+ enable-cache : true
27+
28+ - name : " Set up Python"
29+ uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
30+ with :
31+ python-version-file : " .python-version"
32+
33+ - name : Install the project
34+ run : cd aieng-topic-impl && uv sync --dev
35+
36+ - name : Build package
37+ run : cd aieng-topic-impl && source .venv/bin/activate && uv build
38+
39+ - name : Publish package
40+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
41+ with :
42+ user : __token__
43+ password : ${{ secrets.PYPI_API_TOKEN }}
44+ packages-dir : aieng-topic-impl/dist/
45+
46+ - name : Create GitHub Release
47+ id : create_release
48+ uses : ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1.16.0
49+ with :
50+ artifacts : " aieng-topic-impl/dist/*"
51+ generateReleaseNotes : true
Original file line number Diff line number Diff line change 1+ name : unit tests
2+ permissions :
3+ contents : read
4+ pull-requests : write
5+
6+ on :
7+ push :
8+ branches :
9+ - main
10+ paths :
11+ - .pre-commit-config.yaml
12+ - .github/workflows/code_checks.yml
13+ - .github/workflows/docs.yml
14+ - .github/workflows/unit_tests.yml
15+ - ' **.py'
16+ - ' **.ipynb'
17+ - uv.lock
18+ - pyproject.toml
19+ - ' **.rst'
20+ - ' **.md'
21+ pull_request :
22+ branches :
23+ - main
24+ paths :
25+ - .pre-commit-config.yaml
26+ - .github/workflows/code_checks.yml
27+ - .github/workflows/docs.yml
28+ - .github/workflows/unit_tests.yml
29+ - ' **.py'
30+ - ' **.ipynb'
31+ - uv.lock
32+ - pyproject.toml
33+ - ' **.rst'
34+ - ' **.md'
35+
36+ jobs :
37+ unit-tests :
38+ runs-on : ubuntu-latest
39+ steps :
40+ - uses : actions/checkout@v4.2.2
41+
42+ - name : Install uv
43+ uses : astral-sh/setup-uv@c7f87aa956e4c323abf06d5dec078e358f6b4d04
44+ with :
45+ # Install a specific version of uv.
46+ version : " 0.7.6"
47+ enable-cache : true
48+
49+ - name : " Set up Python"
50+ uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
51+ with :
52+ python-version-file : " .python-version"
53+
54+ - name : Install the project
55+ run : cd aieng-topic-impl && uv sync --all-extras --dev
56+
57+ - name : Install dependencies and check code
58+ run : |
59+ cd aieng-topic-impl
60+ source .venv/bin/activate
61+ uv run pytest -m "not integration_test" tests
Original file line number Diff line number Diff line change 4646 rev : 1.9.1
4747 hooks :
4848 - id : nbqa-ruff
49- args : [--fix, --exit-non-zero-on-fix]
49+ args : [--fix, --exit-non-zero-on-fix, --ignore=D100 ]
5050
5151ci :
5252 autofix_commit_msg : |
Original file line number Diff line number Diff line change 1+ ## aieng-topic-impl
Original file line number Diff line number Diff line change 22
33from aieng .topic .impl .example_impl import example_impl
44
5+
56__all__ = ["example_impl" ]
You can’t perform that action at this time.
0 commit comments