-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (40 loc) · 923 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
38
39
40
41
42
43
44
45
46
name: test
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name:
- "linting"
- "ubuntu-py310"
include:
- name: "linting"
python: "3.10"
os: ubuntu-latest
tox_env: "lint"
- name: "ubuntu-py310"
python: "3.10"
os: ubuntu-latest
tox_env: "py310"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox virtualenv
- name: Test build
run: "tox -e ${{ matrix.tox_env }}"