forked from worktips/worktips-tip-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 968 Bytes
/
tox.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: CI tox
on: [push, pull_request]
jobs:
ci-tox:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- name: Ubuntu 20.04 - Python 3.8
os: ubuntu-20.04
python-minor: 8
- name: Ubuntu 20.04 - Python 3.9
os: ubuntu-20.04
python-minor: 9
- name: Ubuntu 22.04 - Python 3.10
os: ubuntu-22.04
python-minor: 10
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y python3.${{ matrix.python-minor }} python3.${{ matrix.python-minor }}-minimal python3.${{ matrix.python-minor }}-dev python3-pip tox
- name: Setup Python environment
run: |
python3 -m pip install --upgrade pip
- name: Run tox
run: tox -r -e py3${{ matrix.python-minor }}