-
Notifications
You must be signed in to change notification settings - Fork 3
Feat/add uv and semantic release #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
488c7c1
feat/ add uv instead of pip
juliette0704 cdcb917
feat: add python-semantic-release
juliette0704 084159e
fix: add uv on github action
juliette0704 ce19689
fix: add uv on github action
juliette0704 5f42c9a
fix: change min version of python
juliette0704 e1e5175
fix: add cohere and pydantic to dependencies
juliette0704 a2b05ab
chore: refacto and erase useless files
juliette0704 d4af8c2
Merge branch 'main' into feat/add_uv_and_semantic_release
juliette0704 0c0ff68
fix: add setup file
juliette0704 91ce411
fix: uv in the makefile to run tests in uv virtualenv
juliette0704 1e76fa0
chore: erase setup.py because replace by pyproject toml
juliette0704 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: Semantic Release | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pip install -U pip | ||
| pip install python-semantic-release | ||
|
|
||
| - name: Run semantic-release | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| run: semantic-release publish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| install: | ||
| @echo "Installing local package..." | ||
| pip install . | ||
| install-dev: | ||
| @echo "Installing local package in developper mode..." | ||
| pip install -e . | ||
| pip install -r requirements-dev.txt | ||
| pre-commit install | ||
| @echo "Installing local package..." | ||
| uv sync | ||
| uv run pre-commit install | ||
| test: | ||
| @echo "Running tests..." | ||
| pre-commit run --all-files | ||
| mypy . | ||
| uv run pre-commit run --all-files | ||
| uv run mypy . | ||
| # Follow the test practices recommanded by LangChain (v0.3) | ||
| # See https://python.langchain.com/docs/contributing/how_to/integrations/standard_tests/ | ||
| pytest --cov=linkup/ --cov-report term-missing --disable-socket --allow-unix-socket tests/unit_tests | ||
| uv run pytest --cov=src/linkup/ --cov-report term-missing --disable-socket --allow-unix-socket tests/unit_tests | ||
| # TODO: uncomment the following line when integration tests are ready | ||
| # pytest tests/integration_tests | ||
| # uv run pytest tests/integration_tests | ||
| release: | ||
| @echo "Running semantic release..." | ||
| semantic-release publish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also setup python, so you can remove the set up python step I think (check the documentation maybe but this is what we did in some of our other repositories)