From d8b8c940a7102c1146a3a6a4daa10823a43189e7 Mon Sep 17 00:00:00 2001 From: vTuanpham Date: Thu, 4 Jan 2024 22:43:17 +0700 Subject: [PATCH] chore: update github workflow, check on all OS --- .github/workflows/test_translate.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_translate.yml b/.github/workflows/test_translate.yml index a62e731..e1d451a 100644 --- a/.github/workflows/test_translate.yml +++ b/.github/workflows/test_translate.yml @@ -6,9 +6,15 @@ on: - main - dev - feat/* + jobs: test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: [3.8] + + runs-on: ${{ matrix.os }} steps: - name: Check Out Code @@ -17,7 +23,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.8 # Specify your desired Python version + python-version: ${{ matrix.python-version }} - name: Install Dependencies run: | @@ -27,4 +33,4 @@ jobs: - name: Run Unit Tests run: | python -m unittest discover -s tests -p "*_test.py" - working-directory: ./ + working-directory: ./ \ No newline at end of file