Fixing links to PyTessel (issue #53) #147
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Conda pkg | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| tags: | |
| - "v**" | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| check-version-strings: | |
| runs-on: ubuntu-latest | |
| container: python:3.9.18-slim-bullseye | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| pip install pyyaml | |
| - name: Test versions | |
| run: | | |
| python testversion.py | |
| #------------------------------------------------------------------------------- | |
| # Anaconda / Windows | |
| #------------------------------------------------------------------------------- | |
| build-anaconda-windows: | |
| needs: check-version-strings | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set-up miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| activate-environment: test | |
| environment-file: environment.yml | |
| python-version: 3.8 | |
| auto-activate-base: false | |
| - name: Set-up MSVC toolchain | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: amd64 | |
| - name: Build | |
| shell: bash -l {0} | |
| run: | | |
| echo $PATH | |
| conda build . --no-include-recipe | |
| - name: Archive packages | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: anaconda-windows-packages | |
| path: C:\Miniconda\envs\test\conda-bld\win-64\pyqint-*.tar.bz2 | |
| anaconda-publish: | |
| name: Publish Anaconda / Windows | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: build-anaconda-windows | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: anaconda | |
| url: https://anaconda.org/ifilot/pyqint | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set-up miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| activate-environment: test | |
| environment-file: environment.yml | |
| python-version: 3.8 | |
| auto-activate-base: false | |
| - name: Retrieve packages | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: anaconda-windows-packages | |
| path: packages | |
| - name: publish-to-conda | |
| shell: bash -l {0} | |
| env: | |
| INPUT_ANACONDATOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
| run: | | |
| export ANACONDA_API_TOKEN=$INPUT_ANACONDATOKEN | |
| anaconda upload packages/*.tar.bz2 |