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