From 706c4fa96aeee9b32b2280cac749e1c4d37f2bca Mon Sep 17 00:00:00 2001 From: franchb Date: Fri, 23 Aug 2024 13:05:14 +0300 Subject: [PATCH] add install Poetry action --- .github/workflows/main.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6494509..c2f5e79 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 #---------------------------------------------- @@ -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 @@ -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 #---------------------------------------------- @@ -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 @@ -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 #---------------------------------------------- @@ -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