From 6e6b80006ac3fb968cfdbc5507666f8a72032fb2 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Tue, 4 Aug 2026 11:17:21 -0500 Subject: [PATCH] modernize CIs --- .github/dependabot.yml | 12 ++++++++++++ .github/workflows/main.yml | 28 +++++++++------------------- .gitignore | 3 +++ pixi.toml | 18 ++++++++++++++++++ 4 files changed, 42 insertions(+), 19 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 pixi.toml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4d4120c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + dependencies: + patterns: + - '*' + cooldown: + default-days: 7 \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 35997fc..14496b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,22 +10,12 @@ jobs: test-data: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: install mamba - run: | - wget -O Mambaforge.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" - bash Mambaforge.sh -b - - name: make new environment - run: | - source "${HOME}/mambaforge/etc/profile.d/conda.sh" - source "${HOME}/mambaforge/etc/profile.d/mamba.sh" - conda activate - mamba create -n phoible r=4 r-dplyr==1.1.1 r-knitr r-purrr r-readr r-stringr r-testthat r-withr - - name: run tests - working-directory: tests - run: | - source "${HOME}/mambaforge/etc/profile.d/conda.sh" - source "${HOME}/mambaforge/etc/profile.d/mamba.sh" - conda activate - mamba activate phoible - Rscript -e "testthat::test_dir('.', stop_on_failure=TRUE)" + - uses: actions/checkout@v7 + - uses: prefix-dev/setup-pixi@v0.10.0 + with: + pixi-version: v0.66.0 + activate-environment: true + - name: run tests + working-directory: tests + run: | + Rscript -e "testthat::test_dir('.', stop_on_failure=TRUE)" diff --git a/.gitignore b/.gitignore index c4b5fe8..038e8a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ # file types .Rhistory +# pixi environments +.pixi/* +!.pixi/config.toml diff --git a/pixi.toml b/pixi.toml new file mode 100644 index 0000000..14c3165 --- /dev/null +++ b/pixi.toml @@ -0,0 +1,18 @@ +[workspace] +authors = ["Daniel McCloy "] +channels = ["conda-forge"] +name = "dev" +platforms = ["linux-64"] +version = "0.1.0" + +[tasks] + +[dependencies] +r = "4.*" +r-dplyr = "1.1.1.*" +r-knitr = ">=1.47,<2" +r-purrr = ">=1.0.2,<2" +r-readr = ">=2.1.5,<3" +r-stringr = ">=1.5.1,<2" +r-testthat = ">=3.2.1.1,<4" +r-withr = ">=3.0.0,<4"