Skip to content

Commit 0dfe768

Browse files
committed
simplify github actions
1 parent 1ee1f43 commit 0dfe768

File tree

2 files changed

+7
-27
lines changed

2 files changed

+7
-27
lines changed

.github/workflows/build.yml

+4-14
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,11 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16-
- name: Set up Python
17-
uses: actions/setup-python@v5
16+
- name: Setup Python, Poetry and Dependencies
17+
uses: packetcoders/action-setup-cache-python-poetry@main
1818
with:
19-
python-version: '3.9'
20-
21-
- uses: actions/cache@v4
22-
id: cache-python-env
23-
with:
24-
path: ${{ env.pythonLocation }}
25-
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
26-
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install poetry
30-
poetry install --with dev,backends
19+
python-version: ${{ matrix.python-version }}
20+
install-args: --all-extras
3121

3222
- name: Generate test coverage
3323
run: |

.github/workflows/test.yml

+3-13
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Set up Python
20-
uses: actions/setup-python@v5
19+
- name: Setup Python, Poetry and Dependencies
20+
uses: packetcoders/action-setup-cache-python-poetry@main
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
24-
- uses: actions/cache@v4
25-
id: cache-python-env
26-
with:
27-
path: ${{ env.pythonLocation }}
28-
key: ${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
29-
30-
- name: Install dependencies
31-
run: |
32-
python -m pip install poetry
33-
poetry install --with dev,backends
23+
install-args: --with dev,backends
3424

3525
- name: Test
3626
env:

0 commit comments

Comments
 (0)