Skip to content

Commit d61bb42

Browse files
committed
trying without the cache
1 parent 8e7540f commit d61bb42

File tree

1 file changed

+63
-53
lines changed

1 file changed

+63
-53
lines changed

.github/workflows/python-license-check.yml

Lines changed: 63 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,66 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
python-version: [3.9]
12-
steps:
13-
#----------------------------------------------
14-
# check-out repo and set-up python
15-
#----------------------------------------------
16-
- name: Check out repository
17-
uses: actions/checkout@v3
18-
- name: Set up python
19-
id: setup-python
20-
uses: actions/setup-python@v3
21-
with:
22-
python-version: 3.9
23-
#----------------------------------------------
24-
# ----- install & configure poetry -----
25-
#----------------------------------------------
26-
- name: Load Cached Poetry Installation
27-
uses: actions/cache@v3
28-
with:
29-
path: ~/.local # the path depends on the OS
30-
key: poetry-no-dev-2 # increment to reset cache
31-
- name: Install Poetry
32-
uses: snok/install-poetry@v1
33-
with:
34-
virtualenvs-create: true
35-
virtualenvs-in-project: true
36-
installer-parallel: true
37-
#----------------------------------------------
38-
# load cached venv if cache exists
39-
#----------------------------------------------
40-
- name: Load cached venv
41-
id: cached-poetry-no-dev-dependencies
42-
uses: actions/cache@v3
43-
with:
44-
path: .venv
45-
key: venv-no-dev-depend-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
46-
#----------------------------------------------
47-
# Activate virtual environment
48-
#----------------------------------------------
49-
- name: Activate Virtual Environment
50-
run: source .venv/bin/activate
51-
#----------------------------------------------
52-
# install dependencies if cache does not exist
53-
#----------------------------------------------
54-
- name: Install dependencies
55-
if: steps.cached-poetry-no-dev-dependencies.outputs.cache-hit != 'true'
56-
run: poetry install --no-dev
57-
#----------------------------------------------
58-
# Run pylic check
59-
#----------------------------------------------
60-
- name: pylic check
61-
run: |
62-
poetry install --no-dev
63-
poetry run pip install pylic
64-
poetry run pylic check
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install Poetry
19+
run: |
20+
python -m pip install --upgrade pip
21+
python -m pip install poetry
22+
poetry install --no-dev
23+
- name: Pylic License Check
24+
run: |
25+
poetry run pip install pylic
26+
poetry run pylic check
27+
# steps:
28+
# #----------------------------------------------
29+
# # check-out repo and set-up python
30+
# #----------------------------------------------
31+
# - name: Check out repository
32+
# uses: actions/checkout@v3
33+
# - name: Set up python
34+
# id: setup-python
35+
# uses: actions/setup-python@v3
36+
# with:
37+
# python-version: 3.9
38+
# #----------------------------------------------
39+
# # ----- install & configure poetry -----
40+
# #----------------------------------------------
41+
# - name: Load Cached Poetry Installation
42+
# uses: actions/cache@v3
43+
# with:
44+
# path: ~/.local # the path depends on the OS
45+
# key: poetry-no-dev-2 # increment to reset cache
46+
# - name: Install Poetry
47+
# uses: snok/install-poetry@v1
48+
# with:
49+
# virtualenvs-create: true
50+
# virtualenvs-in-project: true
51+
# installer-parallel: true
52+
# #----------------------------------------------
53+
# # load cached venv if cache exists
54+
# #----------------------------------------------
55+
# - name: Load cached venv
56+
# id: cached-poetry-no-dev-dependencies
57+
# uses: actions/cache@v3
58+
# with:
59+
# path: .venv
60+
# key: venv-no-dev-depend-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
61+
# #----------------------------------------------
62+
# # install dependencies if cache does not exist
63+
# #----------------------------------------------
64+
# - name: Install dependencies
65+
# if: steps.cached-poetry-no-dev-dependencies.outputs.cache-hit != 'true'
66+
# run: poetry install --no-dev
67+
# #----------------------------------------------
68+
# # Run pylic check
69+
# #----------------------------------------------
70+
# - name: pylic check
71+
# run: |
72+
# poetry install --no-dev
73+
# poetry run pip install pylic
74+
# poetry run pylic check

0 commit comments

Comments
 (0)