-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.09 KB
/
build-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
47
48
name: Test build and installation
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-20.04, macOS-latest, windows-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Install Poetry
uses: snok/[email protected]
with:
version: 1.1.14
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: ${{ matrix.python-version != '3.6' && 'poetry' || !startsWith(matrix.os, 'windows') && 'poetry' || '' }}
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Build and install wheel
run: |
poetry build
pip install dist/hvac-*.whl