-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 873 Bytes
/
tests.yml
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: tests
on:
pull_request:
push:
branches: [main]
env:
DRIVER_PASSWORD: github-actions
DRIVER_KEY: github-actions
DRIVER_USER_ID: github-actions
TOX_PARALLEL_NO_SPINNER: 1
jobs:
tox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.cache/pre-commit
.tox
.mypy_cache
.coverage
${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements-tox.txt') }}
- name: Install dependencies
run: python -m pip install --disable-pip-version-check --progress-bar off tox
- name: Run all envs
run: tox -p auto -e 'libcloud{30,31,32,33,34,35,36},pre-commit,coverage'