Spaces:
Runtime error
Runtime error
Susanna Anil
commited on
Create main.yml
Browse files- .github/workflows/main.yml +25 -0
.github/workflows/main.yml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This is a basic workflow to help you get started with Actions
|
2 |
+
|
3 |
+
name: Python application test with Github Actions
|
4 |
+
on: [push]
|
5 |
+
jobs:
|
6 |
+
build:
|
7 |
+
runs-on: ubuntu-latest
|
8 |
+
steps:
|
9 |
+
- uses: actions/checkout@v2
|
10 |
+
- name: Set up Python 3.10
|
11 |
+
uses: actions/setup-python@v1
|
12 |
+
with:
|
13 |
+
python-version: 3.10.8
|
14 |
+
- name: Install dependencies
|
15 |
+
run: |
|
16 |
+
make install
|
17 |
+
- name: Lint with pylint
|
18 |
+
run: |
|
19 |
+
make lint
|
20 |
+
- name: Test with pytest
|
21 |
+
run: |
|
22 |
+
make test
|
23 |
+
- name: Format code
|
24 |
+
run: |
|
25 |
+
make format
|