-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (44 loc) · 1.22 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
51
52
53
# This is a workflow for running Continuous Integration (CI)
name: Continuous-Integration
on:
# Permits manual workflow dispatch
workflow_dispatch:
# Triggers the workflow on push events on the main branch
push:
branches:
- main
# Triggers the workflow on pull requests
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository, so your job can access it
- uses: actions/checkout@v3
# Setup a cached Python environment
- name: Setup Python Environment
uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
# Install PIP development dependencies
- name: Install PIP dependencies
run: |
pip install -e .[develop]
# Execute Pylint static analyser
- name: Execute Pylint static analyser
run: |
make pylint
# Run tests
- name: Run Tests
run: |
make pytest_codecov
# Upload coverage information on Codecov
- name: Upload Codecov
uses: codecov/codecov-action@v2