diff --git a/.github/workflows/test-worker.yml b/.github/workflows/test-worker.yml new file mode 100644 index 0000000..4e464ed --- /dev/null +++ b/.github/workflows/test-worker.yml @@ -0,0 +1,30 @@ +name: Run Python tests + +on: [ push, pull_request ] + +jobs: + build: + name: Run tests + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: szenius/set-timezone@v1.2 + with: + timezoneLinux: "Asia/Singapore" + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: pip install pytest pytest-md pytest-emoji + - uses: pavelzw/pytest-action@v2 + with: + emoji: false + verbose: true + job-summary: true + click-to-expand: true + report-title: 'Test Report'