-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (36 loc) · 1.11 KB
/
actions.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
name: Build and Test
on:
push:
env:
PYTHON_VERSION: '3.10.1'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install Python version
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: python --version && pip install pipx && pipx install poetry && poetry install
test:
runs-on: ubuntu-20.04
needs: build
steps:
- name: Install Python version
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install Poetry
run: pip install pipx && pipx install poetry
- name: Install dependencies
run: poetry install
- name: Debug output installed dependencies
run: poetry run pip list
- name: Test
run: poetry run python3 -m pytest -v --cov=flapy --cov-branch --cov-report html:cov_html --cov-report=term-missing tests/
working-directory: ${{ github.workspace }}