Skip to content

Commit a203f78

Browse files
Fix and Optimize Workflows (#61)
* Update macos to use latest version. * Downgrade ubuntu to use 20.04 * Fix duplicated runs * Fix dot instead of minus
1 parent 7858cb1 commit a203f78

File tree

5 files changed

+19
-14
lines changed

5 files changed

+19
-14
lines changed

.github/workflows/integration.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Integration Tests
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
67

78
jobs:
89
unit:
910
runs-on: ${{ matrix.os }}
1011
strategy:
1112
matrix:
1213
python-version: [3.6, 3.7, 3.8, 3.9]
13-
os: [ubuntu-latest, macos-10.15, windows-latest]
14+
os: [ubuntu-20.04, macos-latest, windows-latest]
1415
steps:
1516
- uses: actions/checkout@v1
1617
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Style Checks
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
67

78
jobs:
89
lint:

.github/workflows/minimum.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Unit Tests Minimum Versions
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
67

78
jobs:
89
minimum:
910
runs-on: ${{ matrix.os }}
1011
strategy:
1112
matrix:
1213
python-version: [3.6, 3.7, 3.8, 3.9]
13-
os: [ubuntu-latest, macos-10.15, windows-latest]
14+
os: [ubuntu-20.04, macos-latest, windows-latest]
1415
steps:
1516
- uses: actions/checkout@v1
1617
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/readme.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Test README
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
67

78
jobs:
89
readme:
910
runs-on: ${{ matrix.os }}
1011
strategy:
1112
matrix:
1213
python-version: [3.6, 3.7, 3.8, 3.9]
13-
os: [ubuntu-latest, macos-10.15] # skip windows bc rundoc fails
14+
os: [ubuntu-20.04, macos-latest] # skip windows bc rundoc fails
1415
steps:
1516
- uses: actions/checkout@v1
1617
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/unit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: Unit Tests
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
67

78
jobs:
89
unit:
910
runs-on: ${{ matrix.os }}
1011
strategy:
1112
matrix:
1213
python-version: [3.6, 3.7, 3.8, 3.9]
13-
os: [ubuntu-latest, macos-10.15, windows-latest]
14+
os: [ubuntu-20.04, macos-latest, windows-latest]
1415
steps:
1516
- uses: actions/checkout@v1
1617
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)