This repository has been archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (59 loc) · 1.6 KB
/
main.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
57
58
59
60
name: Test
on:
workflow_dispatch:
push:
branches:
- '*'
tags:
- 'v*.*.*'
jobs:
lint:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: '3.10', python: '3.10', os: ubuntu-latest}
- {name: '3.9', python: '3.9', os: ubuntu-latest}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: update pip
run: pip install -U pip setuptools wheel
- name: install poetry
run: pip install poetry poetry-dynamic-versioning
- name: install libraries
run: poetry install
- name: run lint
run: poetry run poe lint
test:
needs: lint
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: '3.10', python: '3.10', os: ubuntu-latest}
- {name: '3.9', python: '3.9', os: ubuntu-latest}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: update pip
run: pip install -U pip setuptools wheel
- name: install poetry
run: pip install poetry poetry-dynamic-versioning
- name: install libraries
run: poetry install
- name: run test
run: poetry run poe test
- name: upload codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}