From b0fe90b268015faf82a462fa2689561de23e5f61 Mon Sep 17 00:00:00 2001 From: Patrick Ruckstuhl Date: Wed, 14 Aug 2024 17:17:12 +0000 Subject: [PATCH] force beancount < 3 and enable tests also on pull_request --- .github/workflows/ci.yml | 5 +++-- .pre-commit-config.yaml | 6 +++--- setup.cfg | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5273065..8508d03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,13 +1,14 @@ name: ci on: push: + pull_request: jobs: test: name: Run tests and build distribution runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.12, 3.8] steps: - uses: actions/checkout@master with: @@ -34,7 +35,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.12 - name: Install Dependencies run: | pip install wheel setuptools diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0599f97..71af984 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: '^docs/conf.py' repos: -- repo: git://github.com/pre-commit/pre-commit-hooks +- repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 hooks: - id: trailing-whitespace @@ -18,7 +18,7 @@ repos: args: ['--fix=auto'] - repo: https://github.com/pycqa/isort - rev: 5.9.3 + rev: 5.13.2 hooks: - id: isort @@ -28,7 +28,7 @@ repos: - id: black language_version: python3 -- repo: https://gitlab.com/pycqa/flake8 +- repo: https://github.com/PyCQA/flake8 rev: 3.9.2 hooks: - id: flake8 diff --git a/setup.cfg b/setup.cfg index 069ef3d..5a0d48a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ packages = find: setup_requires = setuptools_scm install_requires = - beancount>=2.0.0 + beancount>=2.0.0,<3.0.0 scikit-learn>=0.19 numpy>=1.8.2 scipy>=0.13.3