Skip to content

Commit 2097cc4

Browse files
committed
fix github action for python install
1 parent ab77bc3 commit 2097cc4

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/github-actions.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v2
36-
- name: Set up Python 3.7
37-
uses: actions/setup-python@v2
36+
- uses: actions/setup-python@v4
3837
with:
39-
python-version: 3.7
38+
python-version: '3.9'
39+
check-latest: true
4040
- run: bash .github/workflows/install_ci_python_dep.sh
4141
- run: pre-commit run -a
4242

@@ -69,9 +69,10 @@ jobs:
6969
steps:
7070
- uses: actions/checkout@v2
7171
- name: Set up Python ${{ matrix.python-version }}
72-
uses: actions/setup-python@v2
72+
uses: actions/setup-python@v4
7373
with:
7474
python-version: ${{ matrix.python-version }}
75+
check-latest: true
7576
- name: install mongo and ci dependencies
7677
run: |
7778
bash .github/workflows/install_mongo.sh ${{ matrix.MONGODB }}
@@ -95,9 +96,10 @@ jobs:
9596
steps:
9697
- uses: actions/checkout@v2
9798
- name: Set up Python ${{ matrix.python-version }}
98-
uses: actions/setup-python@v2
99+
uses: actions/setup-python@v4
99100
with:
100101
python-version: 3.7
102+
check-latest: true
101103
- name: install python dep
102104
run: |
103105
pip install -e .
@@ -113,10 +115,10 @@ jobs:
113115
if: github.event_name != 'pull_request'
114116
steps:
115117
- uses: actions/checkout@master
116-
- name: Set up Python 3.7
117-
uses: actions/setup-python@v1
118+
- uses: actions/setup-python@v4
118119
with:
119-
python-version: 3.7
120+
python-version: 3.9
121+
check-latest: true
120122
- name: build dummy wheel for test-pypi
121123
run: |
122124
pip install wheel
@@ -136,10 +138,11 @@ jobs:
136138
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
137139
steps:
138140
- uses: actions/checkout@master
139-
- name: Set up Python 3.7
140-
uses: actions/setup-python@v1
141+
- name: Set up Python 3.9
142+
uses: actions/setup-python@v4
141143
with:
142-
python-version: 3.7
144+
python-version: 3.9
145+
check-latest: true
143146
# todo separate build from publish
144147
# https://stackoverflow.com/questions/59349905/which-properties-does-github-event-in-a-github-workflow-have
145148
- name: build dummy wheel for test-pypi

0 commit comments

Comments
 (0)