diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0b79394 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +--- +name: CI + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + unit-test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: [3.x] + steps: + - uses: actions/checkout@v3 + - name: setup python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: display test env + run: python3 -c "import sys; print(sys.platform)" && python -V + + - name: install dependencies + run: python3 -m pip install -r requirements.txt + + - name: install the package + run: python3 -m pip install . + + - name: unit test + run: pytest diff --git a/requirements.txt b/requirements.txt index 1c3b798..c6b92d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -pytest==2.8.3 -pep8==1.6.2 +pytest>=2.8.3 +pep8>=1.6.2 marshmallow>=2.15.1 -beautifulsoup4==4.4.1 -ordereddict==1.1 -lxml==4.6.5 -six==1.9.0 +beautifulsoup4>=4.4.1 +ordereddict>=1.1 +lxml>=4.6.5 +six>=1.9.0