Skip to content

Commit 3a58187

Browse files
committed
build: update GitHub workflow
1 parent 05badf3 commit 3a58187

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

.github/workflows/python-app.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,37 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
2224
- name: Set up Python 3.8
2325
uses: actions/setup-python@v2
2426
with:
25-
python-version: 3.8.7
27+
python-version: 3.8.11
28+
2629
- name: Caches pip
27-
uses: actions/cache@v1
30+
uses: actions/cache@v2
2831
with:
2932
path: ~/.cache/pip
30-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
31-
restore-keys: |
32-
${{ runner.os }}-pip-
33+
key: ${{ runner.os }}-pip-py3.8.11
34+
3335
- name: Install dependencies
3436
run: |
3537
python -m pip install --upgrade pip
36-
pip install poetry
37-
poetry install
38+
pip install poetry==1.1.14
39+
poetry config virtualenvs.in-project true
40+
41+
- name: Set up poetry cache
42+
uses: actions/cache@v2
43+
with:
44+
path: .venv
45+
key: venv-${{ runner.os }}-python3.8-${{ hashFiles('poetry.lock') }}
46+
47+
- name: Install dependencies
48+
run: poetry install
3849

3950
- name: Lint code
40-
run: poe lint
51+
run: poetry run poe lint
4152

4253
- name: Run tests
43-
run: poe test
54+
run: poetry run poe test

pyproject.toml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,10 @@ homepage = "http://zxbasic.net"
1010
readme = "README.md"
1111

1212
classifiers = [
13-
# How mature is this project? Common values are
14-
# 3 - Alpha
15-
# 4 - Beta
16-
# 5 - Production/Stable
1713
'Development Status :: 5 - Production/Stable',
18-
19-
# Indicate who your project is intended for
2014
'Intended Audience :: Developers',
2115
'Topic :: Software Development :: Build Tools',
22-
23-
# Pick your license as you wish (should match "license" above)
2416
'License :: OSI Approved :: GNU Affero General Public License v3',
25-
26-
# Specify the Python versions you support here. In particular, ensure
27-
# that you indicate whether you support Python 2, Python 3 or both.
2817
'Programming Language :: Python :: 3.8',
2918
]
3019

0 commit comments

Comments
 (0)