diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 30e302b..d6ddcd3 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -17,8 +17,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.7", "3.8"] - + python-version: ["3.9", "3.10"] + steps: - uses: actions/checkout@v2 - uses: conda-incubator/setup-miniconda@v2 @@ -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 @@ -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') }} diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 03b7dfa..7b03cb5 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -9,7 +9,6 @@ source: build: noarch: python - string: py{{py}} script: python setup.py install --single-version-externally-managed --record=record.txt entry_points: - pystog_cli = pystog.cli:pystog_cli