Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Commit b891e3d

Browse files
committed
Fixed workflows to src-layout
1 parent f181e26 commit b891e3d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
uses: proudust/gh-describe@v1.5.3
2222
- name: Build version module
2323
run: |
24-
echo "__version__ = '${{ steps.version.outputs.describe }}'" > adif_file/__version__.py
25-
echo "__branch__ = ''" >> adif_file/__version__.py
26-
echo "__unclean__ = False" >> adif_file/__version__.py
24+
echo "__version__ = '${{ steps.version.outputs.describe }}'" > src/adif_file/__version__.py
25+
echo "__branch__ = ''" >> src/adif_file/__version__.py
26+
echo "__unclean__ = False" >> src/adif_file/__version__.py
2727
- name: Set up Python ${{ matrix.python-version }}
2828
uses: actions/setup-python@v3
2929
with:
@@ -38,7 +38,7 @@ jobs:
3838
# stop the build if there are Python syntax errors or undefined names
3939
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4040
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
41-
flake8 ./adif_file --count --exit-zero --max-complexity=13 --max-line-length=120 --statistics
41+
flake8 ./src/adif_file --count --exit-zero --max-complexity=13 --max-line-length=120 --statistics
4242
- name: Test with pytest
4343
run: |
4444
pytest

.github/workflows/python-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
- uses: actions/checkout@v3
2323
- name: Fake the version file
2424
run: |
25-
echo "__version__ = '0.1'" > adif_file/__version__.py
26-
echo "__branch__ = ''" >> adif_file/__version__.py
27-
echo "__unclean__ = False" >> adif_file/__version__.py
25+
echo "__version__ = '0.1'" > src/adif_file/__version__.py
26+
echo "__branch__ = ''" >> src/adif_file/__version__.py
27+
echo "__unclean__ = False" >> src/adif_file/__version__.py
2828
- name: Set up Python ${{ matrix.python-version }}
2929
uses: actions/setup-python@v3
3030
with:
@@ -39,7 +39,7 @@ jobs:
3939
# stop the build if there are Python syntax errors or undefined names
4040
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4141
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
42-
flake8 ./adif_file --count --exit-zero --max-complexity=13 --max-line-length=120 --statistics
42+
flake8 ./src/adif_file --count --exit-zero --max-complexity=13 --max-line-length=120 --statistics
4343
- name: Test with pytest
4444
run: |
4545
pytest

0 commit comments

Comments
 (0)