diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..db01077 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +# This workflow will install Python dependencies and run tests with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pytest setuptools wheel + python -m pip install . + - name: Test with pytest + run: | + pytest \ No newline at end of file diff --git a/README.md b/README.md index 5248e14..597a09c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Sequence-Space Jacobian (SSJ) +[![CI](https://github.com/shade-econ/sequence-jacobian/actions/workflows/main.yml/badge.svg)](https://github.com/shade-econ/sequence-jacobian/actions/workflows/main.yml) + SSJ is a toolkit for analyzing dynamic macroeconomic models with (or without) rich microeconomic heterogeneity. The conceptual framework is based on our paper Adrien Auclert, Bence Bardóczy, Matthew Rognlie, Ludwig Straub (2021), [Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models](https://doi.org/10.3982/ECTA17434), Econometrica 89(5), pp. 2375–2408 [[ungated copy]](http://mattrognlie.com/sequence_space_jacobian.pdf). diff --git a/setup.cfg b/setup.cfg index c17e8a5..759a6f5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,6 +19,10 @@ package_dir = = src packages = find: python_requires = >=3.7 +install_requires = + numpy >= 1.19.2 + scipy >= 1.2 + numba >= 0.49 [options.packages.find] where = src \ No newline at end of file