Skip to content

Commit

Permalink
Update dependencies (#183)
Browse files Browse the repository at this point in the history
- Update dependencies
- Update publish pipeline
- Add new badge on README
  • Loading branch information
vsakkas authored Sep 8, 2024
1 parent 1791eff commit 6f81c02
Show file tree
Hide file tree
Showing 5 changed files with 572 additions and 488 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
name: Build and Publish

on:
workflow_dispatch: # Triggers manually
push:
tags:
- '*'
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.11
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: "3.11"

- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install --no-dev

- name: Build package
run: poetry build

- name: Publish to PyPI
if: github.ref == 'refs/heads/master'
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: poetry publish
run: |
poetry config pypi-token.pypi $PYPI_PASSWORD
poetry publish
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: poetry install

- name: Run linter
run: poetry run ruff --output-format=github sydney/
run: poetry run ruff check --output-format=github sydney/

- name: Run type checker
run: poetry run mypy --ignore-missing-imports sydney/
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# <img src="https://raw.githubusercontent.com/vsakkas/sydney.py/master/images/logo.svg" width="28px" /> Sydney.py

[![Latest Release](https://img.shields.io/github/v/release/vsakkas/sydney.py.svg)](https://github.com/vsakkas/sydney.py/releases/tag/v0.21.0)
[![Latest Release](https://img.shields.io/github/v/release/vsakkas/sydney.py.svg)](https://github.com/vsakkas/sydney.py/releases/tag/v0.22.0)
[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
[![Managed](https://img.shields.io/badge/managed-poetry-bluegreen.svg?color=blue)](https://github.com/python-poetry/poetry)
[![MIT License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/vsakkas/sydney.py/blob/master/LICENSE)

Python Client for Copilot (formerly named Bing Chat), also known as Sydney.
Expand Down
Loading

0 comments on commit 6f81c02

Please sign in to comment.