diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 3bfa71b..ebfb0d4 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -10,9 +10,16 @@ jobs: #---------------------------------------------- - name: Check out repository uses: actions/checkout@v4 + + #---------------------------------------------- + # ----- setup python ----- + #---------------------------------------------- - name: Set up python id: setup-python uses: actions/setup-python@v5 + with: + python-version: '3.12' + #---------------------------------------------- # ----- install & configure poetry ----- #---------------------------------------------- @@ -28,21 +35,24 @@ jobs: #---------------------------------------------- - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + #---------------------------------------------- # install dependencies if cache does not exist #---------------------------------------------- - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root + #---------------------------------------------- # install your root project, if required #---------------------------------------------- - name: Install project run: poetry install --no-interaction + #---------------------------------------------- # run test suite #----------------------------------------------