File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ jobs:
6464 - name : Generate HTML documentation
6565 run : |
6666 mkdir -p docs
67- python -m robot.libdoc MimesisLibrary docs/MimesisLibrary .html
67+ python -m robot.libdoc MimesisLibrary docs/index .html
6868
6969 - name : Upload documentation artifact
7070 uses : actions/upload-artifact@v4
7171 with :
7272 name : keyword-docs
73- path : docs/MimesisLibrary .html
73+ path : docs/index .html
Original file line number Diff line number Diff line change 1+ name : Upload Python Package to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+ workflow_dispatch : # Allows manual trigger from GitHub Actions tab
7+
8+ permissions :
9+ contents : read
10+ id-token : write # Required for PyPI Trusted Publishing (OIDC)
11+
12+ jobs :
13+ test :
14+ name : Test on Python ${{ matrix.python-version }}
15+ runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ python-version : ["3.10", "3.11", "3.12", "3.13"]
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+
23+ - name : Set up Python ${{ matrix.python-version }}
24+ uses : actions/setup-python@v5
25+ with :
26+ python-version : ${{ matrix.python-version }}
27+
28+ - name : Install dependencies
29+ run : pip install -e ".[dev]"
30+
31+ - name : Run unit tests
32+ run : pytest tests/unit/ -v --tb=short
33+
34+ - name : Run Robot Framework acceptance tests
35+ run : |
36+ mkdir -p results
37+ robot --outputdir results tests/acceptance/
38+
39+ publish :
40+ name : Build & Publish to PyPI
41+ needs : test
42+ runs-on : ubuntu-latest
43+ environment :
44+ name : pypi
45+ url : https://pypi.org/p/robotframework-mimesislibrary
46+
47+ steps :
48+ - uses : actions/checkout@v4
49+
50+ - name : Set up Python
51+ uses : actions/setup-python@v5
52+ with :
53+ python-version : " 3.12"
54+
55+ - name : Install build tools
56+ run : |
57+ python -m pip install --upgrade pip
58+ pip install build
59+
60+ - name : Build package distribution
61+ run : python -m build
62+
63+ - name : Publish package to PyPI
64+ uses : pypa/gh-action-pypi-publish@release/v1
65+ with :
66+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ typecheck: ## Type-check source code with mypy
3333
3434docs : # # Generate HTML keyword documentation with libdoc
3535 mkdir -p docs
36- $(LIBDOC ) MimesisLibrary docs/MimesisLibrary .html
37- @echo " Documentation generated at docs/MimesisLibrary .html"
36+ $(LIBDOC ) MimesisLibrary docs/index .html
37+ @echo " Documentation generated at docs/index .html"
3838
3939clean : # # Remove build artifacts and caches
4040 rm -rf dist/ build/ * .egg-info/ .pytest_cache/ .mypy_cache/ .ruff_cache/
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ Reproducible Test
103103Generate the full keyword reference in HTML format:
104104
105105``` bash
106- python -m robot.libdoc MimesisLibrary docs/MimesisLibrary .html
106+ python -m robot.libdoc MimesisLibrary docs/index .html
107107```
108108
109109## Development Setup
Load diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments