From 640c9f4a7378a37963279cd4c8d8ad01429a6e0f Mon Sep 17 00:00:00 2001 From: Changseok Lee Date: Fri, 5 Jul 2024 17:52:55 +0900 Subject: [PATCH] Create automatic_test.yml add automatic testing actions in Github --- .github/workflows/automatic_test.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/automatic_test.yml diff --git a/.github/workflows/automatic_test.yml b/.github/workflows/automatic_test.yml new file mode 100644 index 0000000..b914a05 --- /dev/null +++ b/.github/workflows/automatic_test.yml @@ -0,0 +1,34 @@ +name: UnitTest + +on: + push: + branches: [main, dev] + pull_request: + branches: [main, dev] + +jobs: + build: + strategy: + fail-fast: false + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.10", "3.11", "3.12"] + runs-on: ${{ matrix.platform }} + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install statmanager-kr==1.8.1.12 + pip install pytest + + - name: Test with pytest + run: | + pytest