forked from beancount/beancount
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from beancount/master
Merge from beancount head
- Loading branch information
Showing
62 changed files
with
3,361 additions
and
2,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.