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..ac8451f 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -22,12 +22,14 @@ 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] - - run: | + - name: Install dependencies + run: python -m pip install pyflakes==2.4.0 black pylama[all] + - name: Run linters + run: | black . --check pylama -l pyflakes,pycodestyle,isort test: @@ -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