Skip to content

Commit

Permalink
update test yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
wj-Mcat committed Oct 31, 2023
1 parent 3281e86 commit 23b4d38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
make install
- name: run the command
run: make test
Expand Down
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,25 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import errno
import io
import os
import subprocess

import setuptools

PADDLENLP_STABLE_VERSION = "PADDLENLP_STABLE_VERSION"


def read_file(filepath):
with open(filepath) as fin:
requirements = fin.read()
return requirements


__version__ = read_file("VERSION")


def write_version_py(filename="erniebot_agent/version.py"):
cnt = '''# THIS FILE IS GENERATED FROM ERNIEBOT-AGENT SETUP.PY
cnt = """# THIS FILE IS GENERATED FROM ERNIEBOT-AGENT SETUP.PY
VERSION = '%(version)s'
'''
"""
content = cnt % {"version": __version__}

with open(filename, "w") as f:
Expand All @@ -43,7 +40,10 @@ def write_version_py(filename="erniebot_agent/version.py"):


def read(*names, **kwargs):
with io.open(os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")) as fp:
with io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get("encoding", "utf8"),
) as fp:
return fp.read()


Expand Down

0 comments on commit 23b4d38

Please sign in to comment.