forked from hetznercloud/hcloud-python
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 767 Bytes
/
unit_test.yml
File metadata and controls
28 lines (26 loc) · 767 Bytes
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
name: Unit Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/test.txt
pip install tox tox-gh-actions
sudo apt install build-essential
- name: Test with tox
run: tox
env:
PLATFORM: ${{ matrix.platform }}