-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 971 Bytes
/
python-tests.yml
File metadata and controls
33 lines (31 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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