Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v7
- name: Assert tag is from master or release-candidate
run: git branch -a --contains $(git describe --tags) | grep -E "master|release-candidate"
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v2.1

- name: Setup Python
uses: actions/setup-python@v7
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
python-version: "3.13"

- name: Install uv
run: python -m pip install --upgrade pip uv

- name: Build package
run: uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
54 changes: 39 additions & 15 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,28 @@ jobs:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- name: Setup dependencies
uses: ExpressApp/github-actions-poetry@v0.4
- name: Checkout repository
uses: actions/checkout@v7

- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.3.2"

- name: Install uv
run: python -m pip install --upgrade pip uv

- name: Install dependencies
run: uv sync --dev

- name: Run tests
env:
BOT_CREDENTIALS: ${{ secrets.END_TO_END_TESTS_BOT_CREDENTIALS }}
run: |
poetry run ./scripts/test --cov=pybotx --cov-report=xml
uv run ./scripts/test --cov=pybotx --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
files: ./coverage.xml
Expand All @@ -35,27 +43,43 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Setup dependencies
uses: ExpressApp/github-actions-poetry@v0.4
- name: Checkout repository
uses: actions/checkout@v7

- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.3.2"
python-version: "3.13"

- name: Install uv
run: python -m pip install --upgrade pip uv

- name: Install dependencies
run: uv sync --dev

- name: Run linters
run: |
poetry run ./scripts/lint
uv run ./scripts/lint

docs-lint:
name: Docs lint
runs-on: ubuntu-22.04

steps:
- name: Setup dependencies
uses: ExpressApp/github-actions-poetry@v0.4
- name: Checkout repository
uses: actions/checkout@v7

- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.3.2"
python-version: "3.13"

- name: Install uv
run: python -m pip install --upgrade pip uv

- name: Install dependencies
run: uv sync --dev

- name: Run linters
run: |
poetry run bash ./scripts/docs-lint
uv run bash ./scripts/docs-lint
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ htmlcov
site
.snippets*/
.idea/
.hypothesis/
.vscode/
.python-version
.hypothesis
Loading