Skip to content

Commit

Permalink
Use set-python cache option
Browse files Browse the repository at this point in the history
  • Loading branch information
tnunamak committed Feb 27, 2024
1 parent 9122b35 commit 03cb95d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Cache Poetry virtualenvs and artifacts
uses: actions/cache@v4
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
path: |
~/.cache/pypoetry/virtualenvs
~/.cache/pypoetry/artifacts
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}-
python-version: ${{ matrix.python-version }}
cache: poetry
cache-dependency-path: poetry.lock

- name: Install dependencies with Poetry
run: poetry install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ On the LLM side, Selfie uses tools like LiteLLM and txtai to support forwarding

## Getting Started

To launch Selfie, ensure that [python](https://www.python.org), [poetry](https://python-poetry.org), and [yarn](https://yarnpkg.com) are installed. Then run the following commands in the project directory:
To launch Selfie, ensure that [python](https://www.python.org) 3.11, [poetry](https://python-poetry.org), and [yarn](https://yarnpkg.com) are installed. Then run the following commands in the project directory:

1. `git clone [email protected]:vana-com/selfie.git`
2. `cp selfie/.env.example selfie/.env`
Expand Down

0 comments on commit 03cb95d

Please sign in to comment.