Skip to content

Commit 437a3f3

Browse files
authored
Merge pull request #79 from dalthviz/setup_miniconda_update
PR: Update workflow actions, add `.spyproject` to `.gitignore` and other CI updates
2 parents ba36f61 + 93910b5 commit 437a3f3

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ jobs:
2525
PYTHON_VERSION: ['3.7', '3.10']
2626
steps:
2727
- name: Checkout branch
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
2929
- name: Install Conda
30-
uses: conda-incubator/setup-miniconda@v2
30+
uses: conda-incubator/setup-miniconda@v3
3131
with:
3232
activate-environment: test
33-
python-version: ${{ matrix.PYTHON_VERSION }}
33+
python-version: ${{ matrix.PYTHON_VERSION }}
34+
channels: conda-forge
3435
- name: Install Dependencies
3536
shell: bash -l {0}
3637
run: pip install -r requirements/install.txt
@@ -70,12 +71,13 @@ jobs:
7071
PYTHON_VERSION: ['3.8', '3.9']
7172
steps:
7273
- name: Checkout branch
73-
uses: actions/checkout@v2
74+
uses: actions/checkout@v4
7475
- name: Install Conda
75-
uses: conda-incubator/setup-miniconda@v2
76+
uses: conda-incubator/setup-miniconda@v3
7677
with:
7778
activate-environment: test
78-
python-version: ${{ matrix.PYTHON_VERSION }}
79+
python-version: ${{ matrix.PYTHON_VERSION }}
80+
channels: conda-forge
7981
- name: Install Dependencies
8082
shell: bash -l {0}
8183
run: pip install -r requirements/install.txt
@@ -108,15 +110,16 @@ jobs:
108110
strategy:
109111
fail-fast: false
110112
matrix:
111-
PYTHON_VERSION: ['3.7', '3.8', '3.9', '3.10']
113+
PYTHON_VERSION: ['3.8', '3.9', '3.10']
112114
steps:
113115
- name: Checkout branch
114-
uses: actions/checkout@v2
116+
uses: actions/checkout@v4
115117
- name: Install Conda
116-
uses: conda-incubator/setup-miniconda@v2
118+
uses: conda-incubator/setup-miniconda@v3
117119
with:
118120
activate-environment: test
119-
python-version: ${{ matrix.PYTHON_VERSION }}
121+
python-version: ${{ matrix.PYTHON_VERSION }}
122+
channels: conda-forge
120123
- name: Install Dependencies
121124
shell: bash -l {0}
122125
run: pip install -r requirements/install.txt
@@ -152,12 +155,13 @@ jobs:
152155
PYTHON_VERSION: ['3.7', '3.8', '3.9', '3.10']
153156
steps:
154157
- name: Checkout branch
155-
uses: actions/checkout@v2
158+
uses: actions/checkout@v4
156159
- name: Install Conda
157-
uses: conda-incubator/setup-miniconda@v2
160+
uses: conda-incubator/setup-miniconda@v3
158161
with:
159162
activate-environment: test
160-
python-version: ${{ matrix.PYTHON_VERSION }}
163+
python-version: ${{ matrix.PYTHON_VERSION }}
164+
channels: conda-forge
161165
- name: Install Dependencies
162166
shell: bash -l {0}
163167
run: pip install -r requirements/install.txt
@@ -184,11 +188,11 @@ jobs:
184188
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
185189
needs: [windows, macos, linux]
186190
steps:
187-
- uses: actions/checkout@v3
188-
- name: Set up Python 3.8
189-
uses: actions/setup-python@v4
191+
- uses: actions/checkout@v4
192+
- name: Set up Python 3.10
193+
uses: actions/setup-python@v5
190194
with:
191-
python-version: 3.8
195+
python-version: 3.10
192196
- name: Install dependencies
193197
run: |
194198
python -m pip install --upgrade pip wheel setuptools
@@ -197,7 +201,7 @@ jobs:
197201
python setup.py sdist bdist_wheel
198202
199203
- name: Publish package
200-
uses: pypa/gh-action-pypi-publish@v1.5.1
204+
uses: pypa/gh-action-pypi-publish@release/v1
201205
with:
202206
user: __token__
203207
password: ${{ secrets.pypi_password }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,7 @@ activate.xsh
275275

276276
# Loghub
277277
CHANGELOG.temp
278+
279+
# Spyder
280+
.spyproject/
281+

0 commit comments

Comments
 (0)