Skip to content

Commit

Permalink
add install Poetry action
Browse files Browse the repository at this point in the history
  • Loading branch information
franchb committed Aug 23, 2024
1 parent 7837771 commit 706c4fa
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
Expand All @@ -100,9 +100,6 @@ jobs:
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: make install
- name: Run tests
Expand Down Expand Up @@ -137,7 +134,7 @@ jobs:
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
Expand All @@ -152,9 +149,6 @@ jobs:
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: make install
- name: Run tests
Expand Down Expand Up @@ -185,7 +179,7 @@ jobs:
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
Expand All @@ -200,12 +194,5 @@ jobs:
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Pip
run: pip install --user --upgrade pip
- name: Install project
run: pip install -e .[test]
- name: run tests
run: pytest -s -vvvv -l --tb=long tests

0 comments on commit 706c4fa

Please sign in to comment.