Skip to content

Commit a883b8b

Browse files
committed
CI updates
1 parent c5556a9 commit a883b8b

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/debian.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: sudo bash debian/install_pkg_build_deps.sh
2020

2121
- name: Create Debian Package
22-
run: make clean install package
22+
run: make clean install_test_requirements package
2323

2424
- name: Upload Artifacts to GitHub
2525
uses: actions/upload-artifact@master

.github/workflows/python-publish_to_pypi.yml

+13-6
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,30 @@ on:
99
jobs:
1010
deploy:
1111

12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
13+
14+
permissions:
15+
id-token: write # IMPORTANT: mandatory for trusted publishing
1316

1417
steps:
1518
- uses: actions/checkout@v2
19+
1620
- name: Set up Python
1721
uses: actions/setup-python@v2
1822
with:
1923
python-version: '3.x'
24+
2025
- name: Install dependencies
2126
run: |
2227
python3 -m pip install --upgrade pip
23-
python3 -m pip install setuptools wheel twine
28+
python3 -m pip install setuptools wheel twine build
29+
2430
- name: Build
2531
run: |
26-
python3 setup.py sdist bdist_wheel
32+
python3 -m build
33+
2734
- name: Publish package
2835
uses: pypa/gh-action-pypi-publish@release/v1
29-
with:
30-
user: __token__
31-
password: ${{ secrets.PYPI_API_TOKEN }}
36+
# with:
37+
# user: __token__
38+
# password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-test_and_lint.yml

+7
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,33 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16+
# python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
1617
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
1718

1819
steps:
1920
- uses: actions/checkout@v2
21+
2022
- name: Set up Python ${{ matrix.python-version }}
2123
uses: actions/setup-python@v2
2224
with:
2325
python-version: ${{ matrix.python-version }}
26+
2427
- name: Install test requirements
2528
run: |
2629
make install_test_requirements
30+
2731
- name: Install package itself (editable)
2832
run: |
2933
make editable
34+
3035
- name: Lint with pylint
3136
run: |
3237
make pylint
38+
3339
- name: Lint with flake8
3440
run: |
3541
make flake8
42+
3643
- name: Test with pytest-cov
3744
run: |
3845
make test_cov

0 commit comments

Comments
 (0)