Skip to content

Commit

Permalink
chore: include poetry.lock for caching
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 committed Oct 1, 2024
1 parent 251a793 commit f0364b6
Show file tree
Hide file tree
Showing 3 changed files with 1,779 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]
matrix:
python-version: ["3.10", "3.12"]

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

- name: Setup python
- name: Install poetry
run: pip install poetry

- name: Setup python (with pip)
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version-file: "pyproject.toml"
cache: "poetry"
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: poetry install
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ipython_config.py
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
poetry.lock
# poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
Expand Down
Loading

0 comments on commit f0364b6

Please sign in to comment.