Skip to content

Commit c678f46

Browse files
authored
Switch to GitHub actions (#27)
* Move to GitHub Actions * Remove CircleCI
1 parent 0951fb1 commit c678f46

File tree

2 files changed

+63
-46
lines changed

2 files changed

+63
-46
lines changed

.circleci/config.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Partition Manager CI
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
lint:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python 3.9
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.9
16+
17+
- name: Install PyLint
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install "pylint==2.6.0"
21+
22+
- name: Install Black
23+
run: |
24+
pip install "black==19.3b0"
25+
26+
- name: Install Flake8
27+
run: |
28+
pip install "flake8==3.8.4"
29+
30+
- name: Install Partition Manager
31+
run: |
32+
pip install --editable ".[pymysql]"
33+
34+
- name: Analysing the code with pylint
35+
run: |
36+
python -m pylint -E partitionmanager
37+
38+
- name: Checking format with Black
39+
run: |
40+
python -m black --check .
41+
42+
- name: Checking format with Flake8
43+
run: |
44+
python -m flake8
45+
46+
test:
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: Set up Python 3.9
52+
uses: actions/setup-python@v2
53+
with:
54+
python-version: 3.9
55+
- name: Install Partition Manager
56+
run: |
57+
pip install --editable ".[pymysql]"
58+
- name: Install PyTest
59+
run: |
60+
pip install pytest
61+
- name: Run PyTest
62+
run: |
63+
pytest --junitxml=test-results/junit.xml

0 commit comments

Comments
 (0)