Skip to content

Commit fa33b0f

Browse files
committed
add linux ci for now
1 parent ab00059 commit fa33b0f

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

.github/workflows/cd.yml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,33 @@ jobs:
4343
# - name: Run tests
4444
# run: pytest tests/
4545

46-
# linux:
47-
# runs-on: ubuntu-latest
48-
# steps:
49-
# - uses: actions/[email protected]
50-
# - name: Set up Python 3.12
51-
# uses: actions/[email protected]
52-
# with:
53-
# python-version: "3.12"
54-
# - name: Install dependencies
55-
# run: |
56-
# python -m pip install --upgrade pip
57-
# pip install -r requirements.txt
58-
# pip install cx_Freeze
59-
# - name: Run cx_freeze
60-
# run: python setup.py bdist_appimage
61-
# - name: Upload cx_freeze appimage
62-
# uses: actions/[email protected]
63-
# with:
64-
# name: Drill-linux.appimage
65-
# path: build/*.appimage
66-
# if-no-files-found: error
46+
linux-cd:
47+
name: Linux CD
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/[email protected]
51+
- name: Set up Python 3.12
52+
uses: actions/[email protected]
53+
with:
54+
python-version: "3.12"
55+
- name: Install dependencies
56+
run: |
57+
python -m pip install --upgrade pip
58+
pip install -r requirements-cd.txt
59+
- name: Lint with flake8
60+
run: python -m flake8 ./src ./tests --count --show-source --statistics
61+
- name: Run tests
62+
run: python -m pytest tests/
63+
- name: Run cx_freeze
64+
run: python setup.py bdist_appimage
65+
- name: Upload cx_freeze appimage
66+
uses: actions/[email protected]
67+
with:
68+
name: Drill-linux.appimage
69+
path: build/*.appimage
70+
if-no-files-found: error
71+
retention-days: 7
72+
compression-level: 9
6773

6874
# macos:
6975

0 commit comments

Comments
 (0)