Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
afermg committed Mar 21, 2024
2 parents 40dbcc8 + 7cce974 commit 12d1181
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 62 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build website

on:
push:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
log-directives: nix_installer=trace
backtrace: full

- name: Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build development environment
run: |
nix-build
- name: Publish to GitHub Pages (and render)
uses: b-rodrigues/quarto-nix-actions/publish@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 changes: 24 additions & 16 deletions poetry.lock → bak/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml → bak/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.9,<3.11"
PyYAML = "5.3.1"
PyYAML = "5.4"
# plotly = "4.14.3"
# dvc-s3 = "^2.23.0"
jupyter = "^1.0.0"
Expand Down
20 changes: 20 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ pkgs ? import <nixpkgs> {} }:

let
inherit (pkgs) fetchFromGitHub callPackage;

poetry2nix-src = fetchFromGitHub {
owner = "nix-community";
repo = "poetry2nix";
rev = "7df29134065172f24385177ea69e755cb90f196c";
sha256 = "0zz3qzp2b5i9gw4yfxfrq07iadcdadackph12h02w19bb3535rm6";
};

poetry2nix = callPackage poetry2nix-src { };

in
poetry2nix.mkPoetryEnv {
projectDir = ./.;
preferWheels = true; # TODO use overrides to fix this
# It has to do with the maturin rust dependencies
}
87 changes: 43 additions & 44 deletions pills/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pills/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python = "^3.9"
boto3 = ">=1.33.1"
matplotlib = "^3.8.2"
polars = "^0.19.19"
pyarrow = "^14.0.1"
pyarrow = ">=15.0.0"
s3fs = "^2023.12.1"
seaborn = "^0.13.2"

Expand Down

0 comments on commit 12d1181

Please sign in to comment.