From ffef820a239a38162d9e4c58a4eba827573c40cc Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Fri, 12 Aug 2022 15:52:55 +0200 Subject: [PATCH] fix ci --- .github/workflows/e2e.yml | 6 +++--- .github/workflows/python.yml | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 241a239..56f2d3b 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -19,12 +19,13 @@ jobs: fail-fast: true matrix: os: ["ubuntu-latest", "macos-latest"] - python-version: ["3.10"] + python-version: ["3.10.4"] runs-on: ${{ matrix.os }} steps: - name: Check out repository uses: actions/checkout@v3 - name: Set up python ${{ matrix.python-version }} + id: setup-python uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -34,6 +35,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true - name: Load cached venv + id: cached-poetry-dependencies uses: actions/cache@v3 with: path: .venv @@ -41,8 +43,6 @@ jobs: - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root - - name: Install library - run: poetry install --no-interaction - name: Set up OCaml uses: ocaml/setup-ocaml@v2 with: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index c405cbe..d5004d1 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -22,11 +22,13 @@ jobs: with: python-version: ${{ matrix.python-version }} - uses: actions/cache@v3 + id: pip-cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip - - run: python -m pip install pyflakes==2.4.0 - - run: python -m pip install black pylama[all] + - name: Install dependencies + if: steps.pip-cache.outputs.cache-hit != 'true' + run: python -m pip install pyflakes==2.4.0 black pylama[all] - run: | black . --check pylama -l pyflakes,pycodestyle,isort @@ -35,12 +37,13 @@ jobs: fail-fast: true matrix: os: ["ubuntu-latest", "macos-latest"] - python-version: ["3.10"] + python-version: ["3.10.4", "3.10.5", "3.10.6"] runs-on: ${{ matrix.os }} steps: - name: Check out repository uses: actions/checkout@v3 - name: Set up python ${{ matrix.python-version }} + id: setup-python uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -50,6 +53,7 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true - name: Load cached venv + id: cached-poetry-dependencies uses: actions/cache@v3 with: path: .venv @@ -57,8 +61,6 @@ jobs: - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root - - name: Install library - run: poetry install --no-interaction - name: Run tests run: | source .venv/bin/activate