Repository navigation
Merge pull request #78 from jean-jsj/ci/fix-pypi-publish #58
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: "Test vs R::did" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| python-version: ["3.8"] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Setup python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| - name: Install Dependencies | |
| run: pip install -r requirements.txt; pip install git+https://github.com/d2cml-ai/DRDID | |
| - name: Install package | |
| run: pip install . | |
| # The live Python<->R differential test (test/test_vs_r.py) was removed: | |
| # building rpy2 + installing R/`did` in CI is unreliable, and parity with R | |
| # `did` is validated far more thoroughly offline (the differential audit | |
| # compares to R at ~1e-9 across many cases). CI runs the package's own | |
| # self-contained test suite, which needs no R. | |
| - name: Run tests | |
| run: pytest csdid/test_csdid/ -m "not slow" |