Debian Codegraph @

.github/workflows/run-tests.yml

raw
1 name: run pull request CI
2
3 on:
4 schedule:
5 - cron: '0 12 * * *' # daily ~8am est
6 workflow_dispatch:
7 pull_request:
8
9 jobs:
10 unit-tests:
11 runs-on: "ubuntu-20.04" # see: https://github.com/actions/setup-python/issues/544
12 timeout-minutes: 10
13 strategy:
14 matrix:
15 python: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"]
16 command: ["py", "scaffolds", "sqlalchemy-1.4", "sqlalchemy-2"]
17 exclude:
18 # SQLAlchemy2 requires >= py3.7
19 - python: 3.6
20 command: "sqlalchemy-2"
21
22 steps:
23 - uses: actions/checkout@v2
24 - name: setup Python
25 uses: actions/setup-python@v2
26 with:
27 python-version: ${{ matrix.python }}
28 - name: install tox
29 run: pip install tox
30 - name: run tox unit tests
31 run: tox -e ${{ matrix.command }}