Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 9f2d957

Browse files
committed
final review changes
1 parent a3546c7 commit 9f2d957

File tree

9 files changed

+16
-33
lines changed

9 files changed

+16
-33
lines changed

.github/workflows/code.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,6 @@ jobs:
7777
with:
7878
fetch-depth: 0
7979

80-
- name: Cache Docker layers
81-
uses: actions/cache@v3
82-
with:
83-
path: /tmp/.buildx-cache
84-
key: ${{ runner.os }}-buildx-${{ github.sha }}
85-
restore-keys: ${{ runner.os }}-buildx-
86-
8780
- name: Log in to GitHub Docker Registry
8881
if: github.event_name != 'pull_request'
8982
uses: docker/login-action@v2
@@ -111,8 +104,6 @@ jobs:
111104
tags: build:latest
112105
context: .
113106
target: build
114-
cache-from: type=local,src=/tmp/.buildx-cache
115-
cache-to: type=local,dest=/tmp/.buildx-cache
116107
load: true
117108

118109
- name: Run tests in the container locked with requirements_dev.txt
@@ -136,8 +127,6 @@ jobs:
136127
tags: ${{ steps.meta.outputs.tags }}
137128
context: .
138129
labels: ${{ steps.meta.outputs.labels }}
139-
cache-from: type=local,src=/tmp/.buildx-cache
140-
cache-to: type=local,dest=/tmp/.buildx-cache
141130

142131
- name: Upload build files
143132
uses: actions/upload-artifact@v3
@@ -177,8 +166,8 @@ jobs:
177166
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
178167
with:
179168
files: |
180-
build_files/requirements*
181-
build_files/dist
169+
build_files/*
170+
build_files/dist/*
182171
generate_release_notes: true
183172
env:
184173
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: tox -e docs
4545

4646
- name: Move to versioned directory
47-
# e.g. master or 0.1.2
47+
# e.g. main or 0.1.2
4848
run: mv build/html ".github/pages/${GITHUB_REF##*/}"
4949

5050
- name: Write versions.txt

.github/workflows/linkcheck.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- name: Avoid git conflicts when tag and branch pushed at same time
20-
if: startsWith(github.ref, 'refs/tags')
21-
run: sleep 60
22-
2319
- name: Checkout
2420
uses: actions/checkout@v2
2521
with:

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ docs/_build/
6060
# PyBuilder
6161
target/
6262

63-
# DLS build dir and virtual environment
64-
/prefix/
65-
/venv/
66-
/lightweight-venv/
67-
/installed.files
63+
# likely venv names
6864
.venv*
65+
venv*
66+
6967

.gitremotes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"tasks": [
66
{
77
"type": "shell",
8-
"label": "Tests with coverage",
9-
"command": "tox -e pytest",
8+
"label": "Tests, lint and docs",
9+
"command": "tox -p",
1010
"options": {
1111
"cwd": "${workspaceRoot}"
1212
},

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ python3-pip-skeleton
99
adopt this skeleton project see
1010
https://epics-containers.github.io/python3-pip-skeleton-cli
1111

12-
[Remove this note when adopting skeleton.]
13-
1412
This is where you should write a short paragraph that describes what your module does,
1513
how it does it, and why people should use it.
1614

tests/test_boilerplate_removed.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ def assert_not_contains_text(path: str, text: str, explanation: str):
2424
skeleton_check(text in contents, f"Please change ./{path} {explanation}")
2525

2626

27-
def assert_not_exists(path: str, explanation: str):
28-
exists = (ROOT / path).exists()
29-
skeleton_check(exists, f"Please delete ./{path} {explanation}")
30-
31-
3227
# setup.cfg
3328
def test_module_description():
3429
conf = configparser.ConfigParser()
@@ -50,6 +45,14 @@ def test_changed_README_intro():
5045
)
5146

5247

48+
def test_removed_adopt_skeleton():
49+
assert_not_contains_text(
50+
"README.rst",
51+
"This project contains template code only",
52+
"remove the note at the start",
53+
)
54+
55+
5356
def test_changed_README_body():
5457
assert_not_contains_text(
5558
"README.rst",

0 commit comments

Comments
 (0)