try fix ci #8
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: Python Bash Tests | |
| on: | |
| push: | |
| tags: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.8', '3.9', '3.10', '3.11'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y python3-pip python3-setuptools cmake patchelf python3-venv | |
| pip install build twine | |
| pip install . | |
| - name: Run bash tests | |
| run: python3 test/test_run_bash_tests.py | |
| - name: Push step (only on tag) | |
| if: startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.10' | |
| run: PYPI_TOKEN="${{ secrets.PYPI_TOKEN }}" bash deploy.bash |