change: github actions

This commit is contained in:
debugtalk
2022-03-21 14:40:33 +08:00
parent 7de56be499
commit 70f41c1d49
2 changed files with 10 additions and 14 deletions
+5 -7
View File
@@ -2,11 +2,8 @@ name: integration_test
on: on:
push: push:
branches:
- dev
pull_request: pull_request:
branches: types: [synchronize]
- master
jobs: jobs:
integration_test: integration_test:
@@ -16,15 +13,16 @@ jobs:
strategy: strategy:
max-parallel: 6 max-parallel: 6
matrix: matrix:
python-version: [3.6, 3.7, 3.8] python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest] # TODO: windows-latest os: [ubuntu-latest, macos-latest] # TODO: windows-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
+5 -7
View File
@@ -2,11 +2,8 @@ name: unittest
on: on:
push: push:
branches:
- dev
pull_request: pull_request:
branches: types: [synchronize]
- master
jobs: jobs:
unittest: unittest:
@@ -16,15 +13,16 @@ jobs:
strategy: strategy:
max-parallel: 12 max-parallel: 12
matrix: matrix:
python-version: [3.6, 3.7, 3.8] python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest, macos-latest, windows-latest]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1 uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip