| 1 | name: Upload to TEST.PyPi |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | |
| 6 | jobs: |
| 7 | build: |
| 8 | |
| 9 | runs-on: ${{ matrix.os }} |
| 10 | strategy: |
| 11 | fail-fast: false |
| 12 | matrix: |
| 13 | python-version: ["3.9", "3.10", "3.11"] |
| 14 | os: |
| 15 | - ubuntu-latest |
| 16 | - macos-latest |
| 17 | |
| 18 | steps: |
| 19 | - uses: actions/checkout@v3 |
| 20 | - name: Set up Python ${{ matrix.python-version }} |
| 21 | uses: actions/setup-python@v4 |
| 22 | with: |
| 23 | python-version: ${{ matrix.python-version }} |
| 24 | - name: Install dependencies |
| 25 | run: | |
| 26 | python -m pip install --upgrade pip |
| 27 | make -f Makefile.dist tools |
| 28 | - name: Build packages |
| 29 | run: make -f Makefile.dist packages |
| 30 | - name: Publish |
| 31 | env: |
| 32 | TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} |
| 33 | TWINE_PASSWORD: ${{ secrets.TESTPYPI_PASSWORD }} |
| 34 | run: make -f Makefile.dist testupload |
| 35 |