Skip to content

Commit

Permalink
Updated the .github/workflows/python-app.yml file and fixed a few thi…
Browse files Browse the repository at this point in the history
…ngs in the setup.py file.
  • Loading branch information
cnobile2012 committed Dec 17, 2023
1 parent c6b8e1b commit e3d9ab6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements/development.txt ]; then pip install -r requirements/development.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ def version():
:rtype: str
"""
regex = r'(?m)(^{}[\s]*=[\s]*(?P<ver>\d*)$)'
fullpath = os.path.join(filepath, 'include.mk')

with open(os.path.join(filepath, 'include.mk')) as f:
with open(fullpath, mode='r', encoding='UTF-8') as f:
ver = f.read()

major = re.search(regex.format('MAJORVERSION'), ver).group('ver')
Expand Down

0 comments on commit e3d9ab6

Please sign in to comment.