Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Aug 12, 2024
1 parent 7c147bc commit 26e5287
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: UnitTest

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
set -x
python -m pip install --upgrade pip
pip install --user poetry
make install
- name: Check code style
run: make test
149 changes: 148 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ flake8 = "==7.0.0"
black = "==24.4.1"
isort = "==5.13.2"
mypy = "==1.10.0"
pytest = "==8.1.1"
pytest-cov = "==5.0.0"
coverage = "==7.5.0"

[build-system]
requires = ["poetry-core"]
Expand Down
16 changes: 16 additions & 0 deletions tosfs/tests/test_tosfs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ByteDance Volcengine EMR, Copyright 2022.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.

def test_hello_world():
assert True

0 comments on commit 26e5287

Please sign in to comment.