Skip to content

Commit e809aeb

Browse files
committed
cleanup build with actions
1 parent 09122e4 commit e809aeb

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

.github/workflows/pythonapp.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
tags:
8+
89
pull_request:
910

1011
jobs:
@@ -17,20 +18,21 @@ jobs:
1718
runs-on: ${{ matrix.os }}
1819

1920
steps:
20-
- uses: actions/checkout@v3
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v4
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
cache: 'pip'
26-
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install -r requirements-dev.txt
31-
32-
- name: Run unittests
33-
run: make unittests
21+
- uses: actions/checkout@v3
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
cache: 'pip'
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -r requirements-dev.txt
33+
34+
- name: Run unittests
35+
run: make unittests
3436

3537
flake8-lint:
3638
runs-on: ubuntu-latest

makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.PHONY: upload release release-test release-tag upload
22

3+
REQUIREMENTS_TXT=requirements-dev.txt
4+
5+
test: unittests
6+
37
version:
48
ifdef VERSION
59
sed -i -e 's|version = .*|version = $(VERSION)|' setup.cfg
@@ -9,7 +13,7 @@ else
913
endif
1014

1115
lint: venv
12-
$(VENV)/flake8 --count --statistics redbeat tests
16+
$(VENV)/flake8 redbeat tests
1317

1418
build:
1519
$(VENV)/python -m build
@@ -37,7 +41,6 @@ upload: venv
3741
docs:
3842
$(MAKE) -C docs/ html
3943

40-
test: unittests
4144
unittests: venv
4245
$(VENV)/python -m unittest discover tests
4346

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 100
3-
target_version = ['py37']
3+
target_version = ['py38']
44
skip-string-normalization = true
55

66
[tool.isort]

requirements-dev.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Packages dependencies
22
celery>=5.0
3-
fakeredis>=1.0.3
43
python-dateutil
54
redis>=3.2
65
tenacity
@@ -13,6 +12,9 @@ flake8
1312
flake8-black
1413
flake8-isort
1514

15+
# Testing
16+
fakeredis>=1.0.3
17+
1618

1719
# Releasing
1820
build

0 commit comments

Comments
 (0)