Skip to content

Commit 8d3785b

Browse files
committed
ci: remove publish to anaconda
1 parent 9b5e4c1 commit 8d3785b

File tree

2 files changed

+82
-67
lines changed

2 files changed

+82
-67
lines changed

.github/workflows/build-test-deploy.yml

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -171,46 +171,46 @@ jobs:
171171
path: release_notes.md
172172

173173
# Build a package for distribution through Anaconda.org (conda install sasctl)
174-
build_conda:
175-
name: "Build Conda Package"
176-
runs-on: ubuntu-latest
177-
needs: test
178-
if: startsWith(github.ref, 'refs/tags/') # run only on tagged commits
179-
180-
steps:
181-
# Setup Miniconda
182-
- uses: conda-incubator/setup-miniconda@v2
183-
with:
184-
auto-update-conda: true
185-
186-
- name: Install conda-build
187-
shell: bash -l {0}
188-
run: |
189-
conda install conda-build
190-
191-
- name: Checkout repository
192-
uses: actions/checkout@v3
193-
194-
# Build package and store results in .build folder
195-
- name: Build package
196-
shell: bash -l {0}
197-
run: |
198-
conda build --output-folder .build .conda
199-
200-
# Archive distribution files. Will upload in a downstream job.
201-
- name: Archive distribution artifacts
202-
uses: actions/upload-artifact@v4
203-
with:
204-
name: conda-dist
205-
path: .build
174+
# build_conda:
175+
# name: "Build Conda Package"
176+
# runs-on: ubuntu-latest
177+
# needs: test
178+
# if: startsWith(github.ref, 'refs/tags/') # run only on tagged commits
179+
#
180+
# steps:
181+
# # Setup Miniconda
182+
# - uses: conda-incubator/setup-miniconda@v2
183+
# with:
184+
# auto-update-conda: true
185+
#
186+
# - name: Install conda-build
187+
# shell: bash -l {0}
188+
# run: |
189+
# conda install conda-build
190+
#
191+
# - name: Checkout repository
192+
# uses: actions/checkout@v3
193+
#
194+
# # Build package and store results in .build folder
195+
# - name: Build package
196+
# shell: bash -l {0}
197+
# run: |
198+
# conda build --output-folder .build .conda
199+
#
200+
# # Archive distribution files. Will upload in a downstream job.
201+
# - name: Archive distribution artifacts
202+
# uses: actions/upload-artifact@v4
203+
# with:
204+
# name: conda-dist
205+
# path: .build
206206

207207

208208
# Publishes the new package to PyPI, uploads the latest documentation to GitHub Pages
209209
# and creates a new release with change notes on GitHub.
210210
publish:
211211
name: "Publish"
212212
runs-on: ubuntu-latest
213-
needs: [gh-pages, build_pypi, build_conda]
213+
needs: [gh-pages, build_pypi]
214214

215215
steps:
216216
- name: Download documentation
@@ -273,32 +273,32 @@ jobs:
273273
# NOTE: could be merged with `publish` job above. Left as a separate, final job since it
274274
# involves multiple steps to setup the environment and if this job fails, the package
275275
# has already been made available through pip, and the release info published.
276-
upload_conda:
277-
name: "Upload Conda Package"
278-
runs-on: ubuntu-latest
279-
needs: [publish]
280-
281-
steps:
282-
# Setup Miniconda
283-
- uses: conda-incubator/setup-miniconda@v2
284-
with:
285-
auto-update-conda: true
286-
287-
# Setup Anaconda client (required for upload)
288-
- name: Install anaconda client
289-
shell: bash -l {0}
290-
run: |
291-
conda install anaconda-client
292-
293-
# Download release files
294-
- name: Download release
295-
uses: actions/download-artifact@v4
296-
with:
297-
name: conda-dist
298-
path: ./dist
299-
300-
# Upload release to Anaconda.org
301-
- name: Upload release
302-
shell: bash -l {0}
303-
run: |
304-
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u sas-institute ./dist/noarch/sasctl-*.tar.bz2
276+
# upload_conda:
277+
# name: "Upload Conda Package"
278+
# runs-on: ubuntu-latest
279+
# needs: [publish]
280+
#
281+
# steps:
282+
# # Setup Miniconda
283+
# - uses: conda-incubator/setup-miniconda@v2
284+
# with:
285+
# auto-update-conda: true
286+
#
287+
# # Setup Anaconda client (required for upload)
288+
# - name: Install anaconda client
289+
# shell: bash -l {0}
290+
# run: |
291+
# conda install anaconda-client
292+
#
293+
# # Download release files
294+
# - name: Download release
295+
# uses: actions/download-artifact@v4
296+
# with:
297+
# name: conda-dist
298+
# path: ./dist
299+
#
300+
# # Upload release to Anaconda.org
301+
# - name: Upload release
302+
# shell: bash -l {0}
303+
# run: |
304+
# anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u sas-institute ./dist/noarch/sasctl-*.tar.bz2

tox.ini

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313

1414
[tox]
15+
requires = tox>=4
1516
envlist = py{38,39,310,311}-tests-{clean,unit,integration}
1617

1718
# Allow execution even if all Python versions are not present
@@ -26,14 +27,15 @@ python =
2627
3.11: py311
2728

2829
[testenv]
30+
description = run standard unit and integration tests
2931
skip_install =
3032
clean: true
3133

32-
basepython =
33-
py38: python3.8
34-
py39: python3.9
35-
py310: python3.10
36-
py311: python3.11
34+
#basepython =
35+
# py38: python3.8
36+
# py39: python3.9
37+
# py310: python3.10
38+
# py311: python3.11
3739

3840
deps =
3941
clean: coverage
@@ -57,6 +59,7 @@ deps =
5759
# tests: tensorflow
5860
# tests: lightgbm ; platform_system != "Darwin" # lightgmb seems to have build issues on MacOS
5961
# doc skips install, so explicitly add minimum packages
62+
deeplearn: torch
6063
doc: sphinx
6164
doc: pydata_sphinx_theme
6265
doc: pyyaml
@@ -79,3 +82,15 @@ commands =
7982
# Uncomment when tests are working again for scenarios
8083
# scenarios: {posargs:pytest --cov={envsitepackagesdir}/sasctl --cov-report=xml:./.reports/scenarios.xml --cov-append tests/scenarios/}
8184
doc: sphinx-build -Ean -b html -j auto ./doc ./doc/_build/html
85+
86+
87+
[testenv:deeplearn]
88+
description = run additional tests that require deep learning libraries.
89+
90+
deps =
91+
tests: torch
92+
tests: onnx
93+
tests: tensorflow
94+
95+
commands =
96+
unit: {posargs:pytest --cov={envsitepackagesdir}/sasctl --cov-report=xml:./.reports/unit.xml --cov-append tests/unit/}

0 commit comments

Comments
 (0)