-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (66 loc) · 1.79 KB
/
tests.yml
File metadata and controls
80 lines (66 loc) · 1.79 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# To test it locally, use `act`: https://github.com/nektos/act
name: Tests
on: [push]
jobs:
tests:
strategy:
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04
- macos-15
python-version:
- '3.9'
- '3.13'
runs-on: ${{ matrix.os }}
name: tests - ${{ matrix.os }} - ${{ matrix.python-version }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install shells on linux
if: runner.os == 'Linux'
run: |
sudo apt update -y
sudo apt install -y ksh mksh zsh
env:
DEBIAN_FRONTEND: noninteractive
- name: Install shells on mac
if: runner.os == 'macOS'
run: |
brew install ksh mksh zsh
- name: Install poetry
run: python -m pip install poetry
- name: Install pipenv
run: python -m pip install pipenv
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Run checks
run: ./tests/run_all_tests
shellCheck:
runs-on: ubuntu-latest
name: ShellCheck
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install ShellCheck
run: |
sudo apt update -y
sudo apt install -y shellcheck
env:
DEBIAN_FRONTEND: noninteractive
- name: Run sources through ShellCheck
run: |
shellcheck pyvenv-activate.sh tests/run_all_tests tests/*_test.sh tests/test_helpers