Skip to content

Commit

Permalink
Change python versions for building and pushing out the conda package
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Apr 15, 2024
1 parent c4d30fc commit 992d7c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8"]
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
Expand Down Expand Up @@ -52,11 +52,11 @@ jobs:
tox -e coverage
pip install coverage
bash <(curl -s https://codecov.io/bash)
- name: Build Python package and Upload to PyPi
shell: bash -l {0}
if: startsWith( github.ref, 'refs/tags/v') && matrix.python-version == env.PYTHON_MAIN_VERSION
env:
env:
PYPI_TOKEN_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install wheel twine
Expand All @@ -65,7 +65,7 @@ jobs:
- name: Build conda package and upload to Anaconda
shell: bash -l {0}
if: startsWith( github.ref, 'refs/tags/v')
if: startsWith( github.ref, 'refs/tags/v') && matrix.python-version == env.PYTHON_MAIN_VERSION
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
IS_RC: ${{ contains(github.ref, 'rc') }}
Expand Down

0 comments on commit 992d7c1

Please sign in to comment.