-
Notifications
You must be signed in to change notification settings - Fork 41
48 lines (39 loc) · 1.07 KB
/
run-test.yaml
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
name: Run tests
on:
push:
pull_request:
env:
# global env to all steps
TOX_WORKERS: -n2
jobs:
run-test:
name: ${{ matrix.python-version }}-${{ matrix.sqlalchemy }}
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.10"
sqlalchemy:
- sqla_release
- sqla_rel_1_4
fail-fast: false
# steps to run in each job. Some are github actions, others run shell commands
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade tox setuptools
pip list
- name: Set env
run: |
echo "SQLA_REF=$(python .github/workflows/scripts/find_version.py ${{ matrix.sqlalchemy }})" >> $GITHUB_ENV
- name: Run tests
run: |
tox