Skip to content

Commit 5729c16

Browse files
authored
Update python-package.yml
modify action to install our package
1 parent 758a7fd commit 5729c16

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
43
name: Python package
5-
64
on:
75
push:
86
branches: [ "main" ]
97
pull_request:
108
branches: [ "main" ]
11-
129
jobs:
1310
build:
14-
1511
runs-on: ubuntu-latest
1612
strategy:
1713
fail-fast: false
1814
matrix:
1915
python-version: ["3.9", "3.10", "3.11"]
20-
2116
steps:
2217
- uses: actions/checkout@v4
2318
- name: Set up Python ${{ matrix.python-version }}
@@ -29,6 +24,8 @@ jobs:
2924
python -m pip install --upgrade pip
3025
python -m pip install flake8 pytest
3126
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+
# Install the package in development mode
28+
pip install -e .
3229
- name: Lint with flake8
3330
run: |
3431
# stop the build if there are Python syntax errors or undefined names

0 commit comments

Comments
 (0)