Skip to content

Commit ffef820

Browse files
committed
fix ci
1 parent d77d34a commit ffef820

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ jobs:
1919
fail-fast: true
2020
matrix:
2121
os: ["ubuntu-latest", "macos-latest"]
22-
python-version: ["3.10"]
22+
python-version: ["3.10.4"]
2323
runs-on: ${{ matrix.os }}
2424
steps:
2525
- name: Check out repository
2626
uses: actions/checkout@v3
2727
- name: Set up python ${{ matrix.python-version }}
28+
id: setup-python
2829
uses: actions/setup-python@v4
2930
with:
3031
python-version: ${{ matrix.python-version }}
@@ -34,15 +35,14 @@ jobs:
3435
virtualenvs-create: true
3536
virtualenvs-in-project: true
3637
- name: Load cached venv
38+
id: cached-poetry-dependencies
3739
uses: actions/cache@v3
3840
with:
3941
path: .venv
4042
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
4143
- name: Install dependencies
4244
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
4345
run: poetry install --no-interaction --no-root
44-
- name: Install library
45-
run: poetry install --no-interaction
4646
- name: Set up OCaml
4747
uses: ocaml/setup-ocaml@v2
4848
with:

.github/workflows/python.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- uses: actions/cache@v3
25+
id: pip-cache
2526
with:
2627
path: ~/.cache/pip
2728
key: ${{ runner.os }}-pip
28-
- run: python -m pip install pyflakes==2.4.0
29-
- run: python -m pip install black pylama[all]
29+
- name: Install dependencies
30+
if: steps.pip-cache.outputs.cache-hit != 'true'
31+
run: python -m pip install pyflakes==2.4.0 black pylama[all]
3032
- run: |
3133
black . --check
3234
pylama -l pyflakes,pycodestyle,isort
@@ -35,12 +37,13 @@ jobs:
3537
fail-fast: true
3638
matrix:
3739
os: ["ubuntu-latest", "macos-latest"]
38-
python-version: ["3.10"]
40+
python-version: ["3.10.4", "3.10.5", "3.10.6"]
3941
runs-on: ${{ matrix.os }}
4042
steps:
4143
- name: Check out repository
4244
uses: actions/checkout@v3
4345
- name: Set up python ${{ matrix.python-version }}
46+
id: setup-python
4447
uses: actions/setup-python@v4
4548
with:
4649
python-version: ${{ matrix.python-version }}
@@ -50,15 +53,14 @@ jobs:
5053
virtualenvs-create: true
5154
virtualenvs-in-project: true
5255
- name: Load cached venv
56+
id: cached-poetry-dependencies
5357
uses: actions/cache@v3
5458
with:
5559
path: .venv
5660
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
5761
- name: Install dependencies
5862
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5963
run: poetry install --no-interaction --no-root
60-
- name: Install library
61-
run: poetry install --no-interaction
6264
- name: Run tests
6365
run: |
6466
source .venv/bin/activate

0 commit comments

Comments
 (0)