-
Notifications
You must be signed in to change notification settings - Fork 22
56 lines (45 loc) · 1.18 KB
/
install-and-run.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
49
50
51
52
53
54
55
56
name: install-and-run
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Trigger manually from the "Actions" tab
workflow_dispatch:
jobs:
install-run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: Gr1N/setup-poetry@v8
- name: Install Enos through poetry
run: |
poetry install
- name: Basic Enos invocation through poetry
run: |
poetry run enos help
- name: Build pip package
run: |
poetry build
- name: Prepare virtualenv
run: |
python3 -m venv virtualenv
source virtualenv/bin/activate
pip install --upgrade pip
- name: Install pip package in virtualenv
run: |
pip install dist/*.whl
- name: Basic Enos invocation from virtualenv
run: |
source virtualenv/bin/activate
enos help