Skip to content

Commit 5827a8e

Browse files
author
Mark Schultz
authored
Update python-package.yml
1 parent 392882a commit 5827a8e

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
41
name: Python package
52

63
on:
@@ -11,30 +8,29 @@ on:
118

129
jobs:
1310
build:
14-
1511
runs-on: ubuntu-latest
1612
strategy:
1713
fail-fast: false
1814
matrix:
1915
python-version: ["3.9", "3.10", "3.11"]
20-
2116
steps:
22-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v2 # check out source code to working directory
2318
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v2
2520
with:
2621
python-version: ${{ matrix.python-version }}
22+
- name: Install Budgitree
23+
run: pip3 install git+https://github.com/schultzm/Budgitree.git
24+
- name: Run Budgitree test
25+
run: python3 ~/.local/bin/budgitree test
2726
- name: Install dependencies
2827
run: |
2928
python -m pip install --upgrade pip
30-
python -m pip install flake8 pytest
29+
python -m pip install flake8
3130
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3231
- name: Lint with flake8
3332
run: |
3433
# stop the build if there are Python syntax errors or undefined names
3534
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3635
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3736
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38-
- name: Test with pytest
39-
run: |
40-
pytest

0 commit comments

Comments
 (0)