-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (34 loc) · 1001 Bytes
/
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
name: Build and Test
on:
push:
env:
PYTHON_VERSION: '3.8.16'
jobs:
build:
runs-on: ubuntu-latest
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 poetry && poetry install
test:
runs-on: ubuntu-latest
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 poetry
- name: Install dependencies
run: poetry install
- name: Test
run: poetry run pytest -v --cov=flapy --cov-branch --cov-report html:cov_html --cov-report=term-missing tests/
working-directory: ${{ github.workspace }}