Update actions/checkout action to v4 - autoclosed #59
Workflow file for this run
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: Test | |
| on: [push, pull_request] | |
| jobs: | |
| Test: | |
| runs-on: ${{ matrix.os }} | |
| if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: [3.8] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dev package | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Test with pytest | |
| run: | | |
| pip install -r requirements.dev.txt | |
| - name: Publish to test.ipynb pypi | |
| env: | |
| FLIT_INDEX_URL: https://test.ipynb.pypi.org/legacy/ | |
| FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
| FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
| run: flit publish || exit 0 |