-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
16,834 additions
and
5,325 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML linguist-generated=true |
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 |
---|---|---|
|
@@ -27,10 +27,11 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Set up poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install | ||
run: poetry install --without docs | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.29.0 | ||
cache: true | ||
|
||
- name: set numba parallel flags | ||
run: | | ||
|
@@ -39,13 +40,21 @@ jobs: | |
- name: Setup r2u | ||
uses: eddelbuettel/github-actions/r2u-setup@master | ||
|
||
- name: install R packages | ||
run: Rscript -e 'install.packages(c("fixest", "broom", "did2s", "clubSandwich", "wildrwolf", "ivDiag"))' | ||
shell: bash | ||
- name: Print R version | ||
run: | | ||
Rscript -e 'R.version' | ||
- name: Install R packages | ||
run: | | ||
R_LIB_PATH="${{ github.workspace }}/.pixi/envs/dev/lib/R/library" | ||
mkdir -p $R_LIB_PATH | ||
Rscript -e ".libPaths('$R_LIB_PATH'); install.packages(c('fixest', 'broom', 'did2s', 'wildrwolf', 'ivDiag', 'car'), lib='/home/runner/work/pyfixest/pyfixest/.pixi/envs/dev/lib/R/library')" | ||
Rscript -e ".libPaths('$R_LIB_PATH'); install.packages('ritest', lib='/home/runner/work/pyfixest/pyfixest/.pixi/envs/dev/lib/R/library', repos = c('https://grantmcdermott.r-universe.dev'))" | ||
- name: Run tests | ||
- name: Run 'regular 'tests | ||
run: | | ||
poetry run pytest tests -m "not (extended or slow or plots)" --cov=pyfixest --cov-report=xml | ||
pixi run tests-regular | ||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
|
@@ -71,10 +80,12 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Set up poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install | ||
run: poetry install --without docs | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.29.0 | ||
cache: true | ||
|
||
|
||
- name: set numba parallel flags | ||
run: | | ||
|
@@ -83,13 +94,16 @@ jobs: | |
- name: Setup r2u | ||
uses: eddelbuettel/github-actions/r2u-setup@master | ||
|
||
- name: install R packages | ||
run: Rscript -e 'install.packages(c("fixest", "broom", "did2s", "clubSandwich", "wildrwolf", "ivDiag"))' | ||
shell: bash | ||
- name: Install R packages | ||
run: | | ||
R_LIB_PATH="${{ github.workspace }}/.pixi/envs/dev/lib/R/library" | ||
mkdir -p $R_LIB_PATH | ||
Rscript -e ".libPaths('$R_LIB_PATH'); install.packages(c('fixest', 'broom','did2s', 'wildrwolf', 'ivDiag', 'car'), lib='/home/runner/work/pyfixest/pyfixest/.pixi/envs/dev/lib/R/library')" | ||
Rscript -e ".libPaths('$R_LIB_PATH'); install.packages('ritest', lib='/home/runner/work/pyfixest/pyfixest/.pixi/envs/dev/lib/R/library', repos = c('https://grantmcdermott.r-universe.dev'))" | ||
- name: Run tests | ||
- name: Run 'slow 'tests | ||
run: | | ||
poetry run pytest tests -m slow --cov=./ --cov-report=xml | ||
pixi run tests-slow | ||
#- name: Upload to Codecov | ||
# uses: codecov/codecov-action@v4 | ||
|
@@ -99,47 +113,6 @@ jobs: | |
# flags: tests-vs-fixest | ||
|
||
|
||
test_notebooks: | ||
name: "Test Notebooks" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Set up poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Set up poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Install | ||
run: poetry install --without docs | ||
- name: set numba parallel flags | ||
run: | | ||
echo "NUMBA_NUM_THREADS=1" >> $GITHUB_ENV | ||
- name: Setup r2u | ||
uses: eddelbuettel/github-actions/r2u-setup@master | ||
|
||
- name: install R packages | ||
run: Rscript -e 'install.packages(c("fixest", "broom", "did2s", "clubSandwich", "wildrwolf", "ivDiag"))' | ||
shell: bash | ||
|
||
- name: Install TeXlive | ||
run: sudo apt-get update && sudo apt-get install texlive texlive-publishers texlive-science latexmk cm-super | ||
|
||
- name: Run notebooks | ||
run: | | ||
poetry install --with docs | ||
poetry run python scripts/run_notebooks.py | ||
|
||
build-docs: | ||
name: "Build Docs" | ||
|
@@ -152,26 +125,32 @@ jobs: | |
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Set up poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install dependencies | ||
run: poetry install --with docs | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.29.0 | ||
cache: true | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- name: install tinytex | ||
run: | | ||
quarto install tinytex | ||
- name: Compile docstrings with quartodoc | ||
run : | | ||
poetry run quartodoc build --verbose --config docs/_quarto.yml | ||
pixi run docs-build | ||
- name: Render docs | ||
run: | | ||
poetry run quarto render docs | ||
pixi run docs-render | ||
- name: Save docs artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: docs-html | ||
path: docs/_site | ||
|
||
|
||
publish-docs: | ||
name: "Publish Docs" | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -31,13 +31,10 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Set up poetry (common to both scenarios) | ||
- name: Set up poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
# Install dependencies (common to both scenarios) | ||
- name: Install dependencies | ||
run: poetry install --without docs | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.29.0 | ||
cache: true | ||
|
||
# Set numba parallel flags (common to both scenarios) | ||
- name: Set numba parallel flags | ||
|
@@ -46,16 +43,19 @@ jobs: | |
- name: Setup r2u | ||
uses: eddelbuettel/github-actions/r2u-setup@master | ||
|
||
- name: install R packages | ||
run: Rscript -e 'install.packages(c("fixest", "broom", "did2s", "clubSandwich", "wildrwolf", "ivDiag"))' | ||
shell: bash | ||
- name: Install R packages | ||
run: | | ||
R_LIB_PATH="${{ github.workspace }}/.pixi/envs/dev/lib/R/library" | ||
mkdir -p $R_LIB_PATH | ||
Rscript -e ".libPaths('$R_LIB_PATH'); install.packages(c('fixest', 'broom','clubSandwich', 'did2s', 'wildrwolf', 'ivDiag', 'car'), lib='/home/runner/work/pyfixest/pyfixest/.pixi/envs/dev/lib/R/library')" | ||
Rscript -e ".libPaths('$R_LIB_PATH'); install.packages('ritest', lib='/home/runner/work/pyfixest/pyfixest/.pixi/envs/dev/lib/R/library', repos = c('https://grantmcdermott.r-universe.dev', 'https://cloud.r-project.org'))" | ||
# Run tests for PRs with the label "extended" | ||
- name: Run tests for plots (only on PRs with the 'tests-extended' label) | ||
if: github.event_name == 'pull_request' && contains(github.event.label.name, 'tests-extended') | ||
run: poetry run pytest tests -m "extended" --cov=pyfixest --cov-report=xml | ||
run: pixi run tests-extended | ||
|
||
# Run tests for push to master | ||
- name: Run tests for push to master | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
run: poetry run pytest tests -m "extended" --cov=pyfixest --cov-report=xml | ||
run: pixi run tests-extended |
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 |
---|---|---|
|
@@ -10,20 +10,14 @@ jobs: | |
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
python-version: '3.11' | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.29.0 | ||
cache: true | ||
- name: Install R packages | ||
run: | | ||
pixi run build-pip | ||
- name: Publish distribution 📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
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 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 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
Oops, something went wrong.