-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Fotis Nikolaidis <[email protected]>
- Loading branch information
Showing
5 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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,55 @@ | ||
name: Update Cache | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: # run this action only when the docs folder is changed | ||
- 'pyproject.toml' | ||
workflow_dispatch: # allows triggering a GitHub action manually - see 'Actions' tab | ||
|
||
|
||
# When this workflow is queued, automatically cancel any previous running | ||
# or pending jobs from the same branch | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
#--------------------------------------------------- | ||
# Cache Builder | ||
#--------------------------------------------------- | ||
cache-builder: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ "ubuntu-latest" ] # TODO: add "windows-latest", "macos-latest" when Docker removed | ||
python-version: ["3.8", "3.11"] # Due to cache limitations, check only the earliest and the latest. | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
#--------------------------------------------------- | ||
# Configuring Python environments. | ||
# | ||
# We intentionally commented the `cache` field to remind us not to enable it. | ||
# The reason is that most of the time is spent on package installation rather than package downloading. | ||
# As a result, in the next step, we will cache the complete Python environment, including all pre-installed components. | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
#cache: 'pip' # Do not activate | ||
|
||
- name: Cache Python ${{ matrix.python-version }} | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ matrix.os }}_python-${{ matrix.python-version }}_${{ hashFiles('**/pyproject.toml') }} | ||
#--------------------------------------------------- | ||
|
||
- name: Install Dev Dependencies | ||
run: python -m pip install --upgrade .[dev] |
This file contains 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 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 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,4 +1,4 @@ | ||
name: Release new version | ||
name: Release in Pypi/DockerHub | ||
on: | ||
push: | ||
branches: | ||
|
This file contains 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 |
---|---|---|
|
@@ -74,7 +74,7 @@ torch = [ | |
"torchvision", | ||
] | ||
apis = [ | ||
"openai>=0.27.6", | ||
"openai==0.27.6", | ||
"cohere", | ||
"anthropic", | ||
] | ||
|