forked from canonical/checkbox-provider-ce-oem
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 986 Bytes
/
tox.yaml
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
name: Test checkbox-provider-ce-oem with tox
on:
push:
pull_request:
branches: [ main ]
paths:
- checkbox-provider-ce-oem/**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.5", "3.6", "3.8", "3.10"]
steps:
- uses: actions/checkout@v3
- name: install stable checkbox and checkbox-provider-ce-oem
run: |
cd ~
git clone --depth=1 https://github.com/canonical/checkbox.git
cd -
cp -r checkbox-provider-ce-oem ~/checkbox/providers
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox and otehr dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install tox
- name: Run tox
working-directory: /home/runner/checkbox/providers/checkbox-provider-ce-oem/
run: tox -e py${{ matrix.python }}