Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 9 additions & 23 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test
name: Test

on:
push:
Expand All @@ -10,36 +10,22 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # This ensures all matrix jobs run even if one fails
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
exclude:
- os: windows-latest
python-version: "3.8" # Windows doesn't support Python 3.8
- os: windows-latest
python-version: "3.9" # Windows doesn't support Python 3.9
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install build dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build

- name: Install package and test dependencies
run: |
pip install -e ".[test]"

pip install pytest pytest-cov
pip install -e .
- name: Run tests
run: |
pytest tests/

- name: Build package
run: |
python setup.py sdist bdist_wheel
pytest --cov=jbang tests/ -o log_cli_level=DEBUG -o log_cli=true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
jbang.egg-info
jbang/__pycache__
__pycache__
.coverage
14 changes: 7 additions & 7 deletions .justfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
default:
echo 'Hello, world!'

test:
source venv/bin/activate
pip3 install -e .
pip install -e ".[test]"
python -m pytest
source .venv/bin/activate
#pip3 install -e .
uv pip install -e ".[test]"

echo Running tests with no jbang in PATH
PATH=$(echo $PATH | tr ':' '\n' | grep -v "\.jbang/bin" | tr '\n' ':' | sed 's/:$//') python -m pytest -o log_cli_level=DEBUG -o log_cli=true

release:
source venv/bin/activate
pip3 install setuptools
uv pip install setuptools
gh release create `python3 setup.py --version` --generate-notes
Loading
Loading