Skip to content

Commit 0bab53e

Browse files
Split up Github Actions (#442)
1 parent 1849e01 commit 0bab53e

File tree

3 files changed

+40
-12
lines changed

3 files changed

+40
-12
lines changed

.github/workflows/ci.yml

+27-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ jobs:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353

5454
docs:
55-
# Build docs separately to make visualise documentation
56-
# problems separably in the PR overview
5755
runs-on: ubuntu-latest
5856
steps:
5957
- uses: actions/checkout@v2
@@ -64,4 +62,30 @@ jobs:
6462
- name: Install dependencies
6563
run: pip install tox
6664
- name: Check docs
67-
run: tox -e docs
65+
run: tox -e docs
66+
67+
formatting:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v2
71+
- name: Set up Python 3.8
72+
uses: actions/setup-python@v2
73+
with:
74+
python-version: 3.8
75+
- name: Install dependencies
76+
run: pip install tox
77+
- name: Check formatting
78+
run: tox -e format
79+
80+
setuppy:
81+
runs-on: ubuntu-latest
82+
steps:
83+
- uses: actions/checkout@v2
84+
- name: Set up Python 3.8
85+
uses: actions/setup-python@v2
86+
with:
87+
python-version: 3.8
88+
- name: Install dependencies
89+
run: pip install tox
90+
- name: Check docs
91+
run: tox -e setuppy

schedule/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ def tag(self, *tags: Hashable):
455455
return self
456456

457457
def at(self, time_str):
458+
458459
"""
459460
Specify a particular time that the job should be run at.
460461
@@ -544,7 +545,7 @@ def to(self, latest: int):
544545

545546
def until(
546547
self,
547-
until_time: Union[datetime.datetime, datetime.timedelta, datetime.time, str]
548+
until_time: Union[datetime.datetime, datetime.timedelta, datetime.time, str],
548549
):
549550
"""
550551
Schedule job to run until the specified moment.

tox.ini

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py3{6,7,8,9}, docs
2+
envlist = py3{6,7,8,9}
33
skip_missing_interpreters = true
44

55

@@ -13,16 +13,19 @@ python =
1313
[testenv]
1414
deps = -rrequirements-dev.txt
1515
commands =
16-
py.test test_schedule.py --flake8 schedule -v --cov schedule --cov-report term-missing
17-
python setup.py check --strict --metadata --restructuredtext
16+
py.test test_schedule.py schedule -v --cov schedule --cov-report term-missing
1817
python -m mypy -p schedule
1918

2019
[testenv:docs]
2120
changedir = docs
2221
deps = -rrequirements-dev.txt
23-
commands =
24-
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
22+
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
23+
24+
[testenv:format]
25+
deps = -rrequirements-dev.txt
26+
commands = black --check .
2527

26-
[flake8]
27-
max-line-length = 88
28-
extend-ignore = E203
28+
[testenv:setuppy]
29+
deps = -rrequirements-dev.txt
30+
commands =
31+
python setup.py check --strict --metadata --restructuredtext

0 commit comments

Comments
 (0)