diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5c8cc77f9..91636ccbb 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -8,13 +8,15 @@ on: pull_request: paths-ignore: - '**.md' + workflow_dispatch: + jobs: run: name: Run runs-on: ${{ matrix.operating-system }} strategy: matrix: - operating-system: [ubuntu-latest, windows-latest] + operating-system: [self-hosted, windows-latest] steps: - name: Checkout uses: actions/checkout@v3 @@ -31,39 +33,29 @@ jobs: - name: Lint run: npm run format-check - - name: npm test - run: npm test - - - name: Run with setup-python 2.7 - uses: ./ - with: - python-version: 2.7 - - name: Verify 2.7 - run: python __tests__/verify-python.py 2.7 - - name: Run with setup-python 3.5 - uses: ./ + uses: actions/setup-python@v4 with: python-version: 3.5 - name: Verify 3.5 run: python __tests__/verify-python.py 3.5 - name: Run with setup-python 3.6 - uses: ./ + uses: actions/setup-python@v4 with: python-version: 3.6 - name: Verify 3.6 run: python __tests__/verify-python.py 3.6 - name: Run with setup-python 3.7 - uses: ./ + uses: actions/setup-python@main with: python-version: 3.7 - name: Verify 3.7 run: python __tests__/verify-python.py 3.7 - name: Run with setup-python 3.8 - uses: ./ + uses: actions/setup-python@main with: python-version: 3.8 - name: Verify 3.8