Skip to content

Commit

Permalink
Merge pull request #1 from beancount/master
Browse files Browse the repository at this point in the history
Merge from beancount head
  • Loading branch information
ericaltendorf authored Apr 10, 2024
2 parents 1936454 + 558d0b1 commit e4e04a6
Show file tree
Hide file tree
Showing 62 changed files with 3,361 additions and 2,280 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ on:
- pull_request
jobs:
install-from-sources:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
# The oldest supported python version
python-version: 3.7
- run: python -m pip install .
- run: |
bean-check --help
bean-doctor --help
bean-example --help
bean-format --help
install-from-sources-oldstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -25,8 +39,9 @@ jobs:
with:
# The oldest supported python version
python-version: 3.7
- run: python setup.py sdist --format zip
- run: pip install dist/beancount-*.zip
- run: python -m pip install build
- run: python -m build --sdist
- run: python -m pip install dist/beancount-*.tar.gz
- run: |
bean-check --help
bean-doctor --help
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/linux-ci.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/pypi-wheel.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: tests
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu
- windows
- macos
python:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- run: python -m pip install pytest
- run: python -m pip install . -Csetup-args=--vsenv
- run: pytest --import-mode=importlib beancount
if: runner.os != 'Windows'
67 changes: 67 additions & 0 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: build
on:
push:
tags: '*'

jobs:

wheels:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu
- os: macos
- os: windows
architecture: AMD64
- os: windows
architecture: x86
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
with:
platforms: arm64
if: runner.os == 'Linux'
- uses: bus1/cabuild/action/msdevshell@v1
with:
architecture: x64
if: runner.os == 'Windows' && matrix.architecture == 'AMD64'
- uses: bus1/cabuild/action/msdevshell@v1
with:
architecture: x86
if: runner.os == 'Windows' && matrix.architecture == 'x86'
- run: pipx run cibuildwheel==2.15.0
env:
CIBW_SKIP: pp* cp36-* cp37-* *-musllinux*
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_ARCHS_WINDOWS: ${{ matrix.architecture }}
- uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl

sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: python -m pip install build
- run: python -m build --sdist
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

upload:
needs:
- wheels
- sdist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
path: dist
- run: python -m pip install twine
- run: python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}
16 changes: 0 additions & 16 deletions .github/workflows/windows-ci.yaml

This file was deleted.

Loading

0 comments on commit e4e04a6

Please sign in to comment.