Skip to content

Commit e56637c

Browse files
authored
Merge pull request #120 from the-dotify-project/development
Development
2 parents e2dbdb9 + c30afbd commit e56637c

29 files changed

+785
-473
lines changed

.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ indent_size = 2
2323
indent_size = 2
2424

2525
[*.md]
26-
charset = unset
27-
end_of_line = unset
2826
indent_size = unset

.flake8

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/cd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99

1010
jobs:
1111
publish:
12-
name: Create a GitHub Release & Upload to PyPI
1312
runs-on: ubuntu-latest
1413
if: github.event.pull_request.merged == true
1514
steps:

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: CI
33
on:
44
push:
55
branches: [master]
6+
paths:
7+
- 'dotify/**/*.py'
8+
- 'tests/**/*.py'
69
pull_request:
710
branches: [master]
11+
paths:
12+
- 'dotify/**/*.py'
13+
- 'tests/**/*.py'
814

915
jobs:
1016
tox:

.github/workflows/codecov.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Code Coverage
22

33
on:
4-
workflow_run:
5-
workflows: ["Publish"]
6-
types:
7-
- completed
4+
push:
5+
paths:
6+
- 'dotify/**/*.py'
7+
- 'tests/**/*.py'
88

99
jobs:
1010
codecov:
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/[email protected]
3131
with:
3232
path: .venv
33-
key: ${{ matrix.platform }}-venv-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
33+
key: venv-${{ hashFiles('**/poetry.lock') }}
3434

3535
- name: Install dependencies
3636
run: |
@@ -41,9 +41,7 @@ jobs:
4141
SPOTIFY_ID: ${{ secrets.SPOTIFY_ID }}
4242
SPOTIFY_SECRET: ${{ secrets.SPOTIFY_SECRET }}
4343
run: |
44-
poetry run python -m pytest --cov=./dotify --cov-report=xml
44+
poetry run python -m pytest -p no:sugar --cov=./dotify --cov-report=xml
4545
46-
- name: Publish the coverage report to Code Climate
47-
uses: paambaati/[email protected]
48-
env:
49-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_ID }}
46+
- name: Upload coverage report
47+
uses: codecov/codecov-action@v2

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ name: "CodeQL"
88
on:
99
push:
1010
branches: [master]
11+
paths:
12+
- 'dotify/**/*.py'
13+
- 'tests/**/*.py'
14+
- 'requirements.txt'
1115
pull_request:
1216
# The branches below must be a subset of the branches above
1317
branches: [master]
18+
paths:
19+
- 'dotify/**/*.py'
20+
- 'tests/**/*.py'
21+
- 'requirements.txt'
1422
schedule:
15-
- cron: "0 23 * * 0"
23+
- cron: "0 23 * * *"
1624

1725
jobs:
1826
analyze:

.github/workflows/preview-docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Preview Docs
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
types: [opened, synchronize, reopened, closed]
8+
paths:
9+
- 'dotify/**/*.py'
10+
- 'docs/**'
11+
- '*.md'
12+
13+
jobs:
14+
preview:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
24+
- name: Install Poetry
25+
uses: abatilo/[email protected]
26+
with:
27+
poetry-version: 1.1.6
28+
29+
- name: Configure Poetry
30+
run: |
31+
poetry config virtualenvs.in-project true
32+
33+
- name: Set up cache
34+
uses: actions/[email protected]
35+
with:
36+
path: .venv
37+
key: venv-${{ hashFiles('**/poetry.lock') }}
38+
39+
- name: Install dependencies
40+
run: |
41+
poetry install
42+
43+
- uses: afc163/surge-preview@v1
44+
with:
45+
surge_token: ${{ secrets.SURGE_TOKEN }}
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
dist: site
48+
teardown: 'true'
49+
build: |
50+
poetry run mkdocs build

.gitpod.Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM gitpod/workspace-full
2+
3+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
4+
5+
ENV PATH "${HOME}/.poetry/bin:${PATH}"
6+
7+
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - \
8+
&& poetry config virtualenvs.create "true" \
9+
&& poetry config virtualenvs.in-project "true" \
10+
&& pyenv update \
11+
&& pyenv install -s 3.7.10 \
12+
&& pyenv install -s 3.8.9 \
13+
&& pyenv install -s 3.9.4 \
14+
&& pyenv local 3.7.10 3.8.9 3.9.4 \
15+
&& if ! grep -q "export PIP_USER=no" "$HOME/.bashrc"; then printf '%s\n' "export PIP_USER=no" >> "$HOME/.bashrc"; fi

.gitpod.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
ports:
5+
- port: 8000
6+
onOpen: open-preview
7+
8+
vscode:
9+
extensions:
10+
- "ms-python.python"
11+
- "njpwerner.autodocstring"
12+
- "teabyii.ayu"
13+
- "PKief.material-icon-theme"
14+
- "aaron-bond.better-comments"
15+
- "alefragnani.Bookmarks"
16+
- "IBM.output-colorizer"
17+
- "streetsidesoftware.code-spell-checker"
18+
- "yzhang.markdown-all-in-one"
19+
- "davidanson.vscode-markdownlint"
20+
- "qcz.text-power-tools"
21+
- "ms-azuretools.vscode-docker"
22+
- "wayou.vscode-todo-highlight"
23+
- "editorconfig.editorconfig"
24+
- "christian-kohler.path-intellisense"
25+
- "eamodio.gitlens"
26+
- "bungcip.better-toml"
27+
- "redhat.vscode-yaml"
28+
- "almenon.arepl"
29+
30+
tasks:
31+
- init: |
32+
poetry install
33+
poetry run pre-commit install --install-hooks
34+
poetry shell
35+
36+
github:
37+
prebuilds:
38+
master: true
39+
branches: true
40+
pullRequests: true
41+
pullRequestsFromForks: true
42+
addCheck: true
43+
addComment: false
44+
addBadge: true

0 commit comments

Comments
 (0)