Skip to content

Commit

Permalink
Upgraded to python 3.13, migrated to uv and made sure everything is s…
Browse files Browse the repository at this point in the history
…till working (#62)

* Upgraded to python 3.13, migrated to uv and made sure everything is still working

* Updated readme with instructions for using uv

* Added Github Action for running tests
  • Loading branch information
marlanperumal authored Jan 14, 2025
1 parent 94728d4 commit d254a63
Show file tree
Hide file tree
Showing 20 changed files with 1,081 additions and 1,224 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/issue-branch.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Test and Publish

on:
release:
types: [created]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.13'

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest -v

publish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.13'

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Install the project
run: uv sync --all-extras --dev

- name: Build the package
run: uv build

- name: Publish to PyPi
run: uv publish
31 changes: 0 additions & 31 deletions .github/workflows/python-publish.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run tests

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.13"

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest -v
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
.ruff_cache/

# Translations
*.mo
Expand Down
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

28 changes: 0 additions & 28 deletions Pipfile

This file was deleted.

Loading

0 comments on commit d254a63

Please sign in to comment.