Use non-editable CI install for account_do
Hatchling cannot build editable installs when project sources rewrite a prefix. Install the package normally with test extras in Gitea Actions and keep the workflow coverage test aligned with that supported install path.
This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- name: Install package and test dependencies
|
- name: Install package and test dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install -e '.[test]'
|
python -m pip install '.[test]'
|
||||||
|
|
||||||
- name: Compile Python sources
|
- name: Compile Python sources
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -561,7 +561,7 @@ class AccountDoUnitTestCase(unittest.TestCase):
|
|||||||
self.assertIn('test:', workflow)
|
self.assertIn('test:', workflow)
|
||||||
self.assertIn('publish:', workflow)
|
self.assertIn('publish:', workflow)
|
||||||
self.assertIn('needs: test', workflow)
|
self.assertIn('needs: test', workflow)
|
||||||
self.assertIn("python -m pip install -e '.[test]'", workflow)
|
self.assertIn("python -m pip install '.[test]'", workflow)
|
||||||
self.assertIn('python -m compileall .', workflow)
|
self.assertIn('python -m compileall .', workflow)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"python -m unittest discover -s tests -p 'test*.py'", workflow)
|
"python -m unittest discover -s tests -p 'test*.py'", workflow)
|
||||||
|
|||||||
Reference in New Issue
Block a user