-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (32 loc) · 989 Bytes
/
test.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
34
35
36
37
name: test
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
environment: testing
strategy:
matrix:
python: [3.7, 3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
with:
python-version: ${{ matrix.python }}
- name: Install Tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e py
env:
DSV_CLIENT_ID: ${{ secrets.DSV_CLIENT_ID }}
DSV_CLIENT_SECRET: ${{ secrets.DSV_CLIENT_SECRET }}
DSV_BASE_URL: ${{ secrets.DSV_BASE_URL }}
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
with:
fail_ci_if_error: false