-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (50 loc) · 1.32 KB
/
ci.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
name: CI
on:
push:
branches:
- master
- dev
pull_request: ~
env:
DEFAULT_PYTHON: "3.12"
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install poetry
run: pip install poetry==1.8.2
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: "poetry"
- name: Install dependencies
run: poetry install
- name: 🧹 Lint files with pylint
run: poetry run pylint pyefergy
- name: 🖤 Format with black
run: poetry run black . --check
- name: Check with ruff
run: poetry run ruff check
- name: 🔍 Inspect with mypy
run: poetry run mypy pyefergy
- name: Test with pytest
run: poetry run pytest
- name: Generate Report
run: |
pip install tabulate
pip install coverage
pip install hypothesis
pip install aiohttp
pip install iso4217
pip install pytz
coverage run -m unittest
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
verbose: true