We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 865ddc1 commit 4b2a89dCopy full SHA for 4b2a89d
2 files changed
.github/workflows/ci.yml
@@ -1,6 +1,9 @@
1
name: CI
2
on: [push, pull_request]
3
4
+env:
5
+ HSD_PYTHON_VERSION: '0.1'
6
+
7
jobs:
8
test:
9
@@ -24,7 +27,7 @@ jobs:
24
27
run: |
25
28
python -m build
26
29
pip install dist/hsd_python*.whl
- python3 -c 'import hsd; print(hsd.__version__)'
30
+ python -c "import hsd; assert hsd.__version__ == '${HSD_PYTHON_VERSION}'"
31
32
- name: Run test pytest
33
run: python3 -m pytest
devtools/set_version
@@ -23,6 +23,9 @@ FILES_PATTERNS = [('src/hsd/__init__.py',
23
('docs/conf.py',
r'release\s*=\s*([\'"]){}\1'.format(VERSION_PATTERN),
"release = '{version}'"),
+ ('.github/workflows/ci.yml',
+ r'HSD_PYTHON_VERSION:\s*([\'"]){}\1'.format(VERSION_PATTERN),
+ "HSD_PYTHON_VERSION: '{version}'"),
]
0 commit comments