From 86cf759deff9bbfa64381d05ad5fd11ebef0ee58 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 18:06:17 +0900 Subject: [PATCH 1/6] add: github action yaml file for test --- .github/workflow/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflow/ci.yml diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml new file mode 100644 index 0000000..73bdfb3 --- /dev/null +++ b/.github/workflow/ci.yml @@ -0,0 +1,37 @@ +--- +name: CI + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + unit-test: + runs-on: ubuntu-latest + 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 }} + env: + AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache + + - 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 From 847f4105a2d62a008536c19631fb82f8aa99ab64 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 18:09:10 +0900 Subject: [PATCH 2/6] test: change branch for add_CI_by_github_actions#60 --- .github/workflow/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml index 73bdfb3..4f835ac 100644 --- a/.github/workflow/ci.yml +++ b/.github/workflow/ci.yml @@ -4,7 +4,7 @@ name: CI on: push: branches: - - main + - add_CI_by_github_actions#60 workflow_dispatch: jobs: From 7506f6187760d306ab02eb1e0307734d5e170601 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 18:16:34 +0900 Subject: [PATCH 3/6] fix: wrong dir name --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7426ae6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +--- +name: CI + +on: + push: + branches: + - add_CI_by_github_actions#60 + workflow_dispatch: + +jobs: + unit-test: + runs-on: ubuntu-latest + 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 }} + #env: + # AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache + + - 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 From c4ca9eee4bcfbf114abbe7594c9318fc19330f05 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 18:18:47 +0900 Subject: [PATCH 4/6] upgrade: on CI test lxml was too obsolete and install failed. --- requirements.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 From 9eec2685a3826a168c030b915f97f72461093a14 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 18:24:41 +0900 Subject: [PATCH 5/6] fix: test for multi platform CI --- .github/workflow/ci.yml | 37 ------------------------------------- .github/workflows/ci.yml | 4 +--- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 .github/workflow/ci.yml diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml deleted file mode 100644 index 4f835ac..0000000 --- a/.github/workflow/ci.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -name: CI - -on: - push: - branches: - - add_CI_by_github_actions#60 - workflow_dispatch: - -jobs: - unit-test: - runs-on: ubuntu-latest - 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 }} - env: - AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache - - - 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/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7426ae6..95e66b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: jobs: unit-test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: @@ -21,8 +21,6 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - #env: - # AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache - name: display test env run: python3 -c "import sys; print(sys.platform)" && python -V From 0cf5ba0be323ae8564aa7b855b696b28284071f8 Mon Sep 17 00:00:00 2001 From: Yosuke OTSUKI Date: Sun, 25 Dec 2022 18:29:39 +0900 Subject: [PATCH 6/6] prepar for merge to greedo's main branch --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95e66b4..0b79394 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ name: CI on: push: branches: - - add_CI_by_github_actions#60 + - main workflow_dispatch: jobs: