Skip to content

Commit

Permalink
feat: Add talk from ORIGINS Data Science Lab 2023 seminar series (#1)
Browse files Browse the repository at this point in the history
* Add talk from ORIGINS Data Science Lab Forum's 2023 seminar series.
   - https://github.com/matthewfeickert-talks/talk-odsl-forum-seminar-2023
* Add URSSI information.
   - https://github.com/si2-urssi/summerschool-July2024
* Update information and CI.
  • Loading branch information
matthewfeickert authored Jul 29, 2024
1 parent 0778e73 commit 66d7173
Show file tree
Hide file tree
Showing 139 changed files with 5,354 additions and 2 deletions.
176 changes: 176 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
edit_sys_path:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.x']

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade scipy
- name: Run code with sys path edited
run: |
cd examples/edit_sys_path
python example.py
simple:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.x']

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Local install
run: |
python -m pip install --upgrade pip wheel
cd examples/simple_packaging
python -m pip install .
- name: List installed Python packages
run: python -m pip list

- name: Cleanup to have dist build be as clean as possible
run: |
cd examples/simple_packaging
rm -rf src/rosen/_version.py
rm -rf build
- name: Build a sdist and wheel
run: |
cd examples/simple_packaging
pipx run build .
- name: Verify the distribution
run: |
cd examples/simple_packaging
pipx run twine check --strict dist/*
- name: List contents of sdist
run: |
cd examples/simple_packaging
python -m tarfile --list dist/rosen-*.tar.gz
- name: List contents of wheel
run: |
cd examples/simple_packaging
python -m zipfile --list dist/rosen-*.whl
- name: Run tests with pytest
run: |
python -m pip install --upgrade pytest
cd examples/simple_packaging
pytest tests/
- name: Upload simple packaging dists
uses: actions/upload-artifact@v4
with:
name: simple_packaging
path: examples/simple_packaging/dist/

compiled:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.x']

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Local install
run: |
python -m pip install --upgrade pip wheel
cd examples/compiled_packaging
python -m pip install .
- name: List installed Python packages
run: python -m pip list

- name: Cleanup to have dist build be as clean as possible
run: |
cd examples/compiled_packaging
rm -rf src/rosen_cpp/_version.py
rm -rf build
- name: Build a sdist and wheel
run: |
cd examples/compiled_packaging
pipx run build .
- name: Verify the distribution
run: |
cd examples/compiled_packaging
pipx run twine check --strict dist/*
- name: List contents of sdist
run: |
cd examples/compiled_packaging
python -m tarfile --list dist/rosen_cpp-*.tar.gz
- name: List contents of wheel
run: |
cd examples/compiled_packaging
python -m zipfile --list dist/rosen_cpp-*.whl
- name: Run tests with pytest
run: |
python -m pip install --upgrade pytest
cd examples/compiled_packaging
pytest tests/
- name: Upload compiled packaging dists
uses: actions/upload-artifact@v4
with:
name: compiled_packaging
path: examples/compiled_packaging/dist/
55 changes: 55 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Deploy GitHub Pages

on:
push:
branches: ["main"]
tags: [v*]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Setup site for deployment
run: |
mkdir -p _site
cp -r assets _site/
cp -r figures _site/
cp index.html _site/
cp talk.md _site/
- name: Fix permissions if needed
run: |
chmod -c -R +rX "_site/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
makefile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
dir_path := $(dir $(makefile_path))
current_dir := $(notdir $(patsubst %/,%,$(dir_path)))

default: decktape

all: decktape

decktape: talk.md
docker run --rm -v ${dir_path}:/slides/ astefanutti/decktape:3.7.0 \
https://matthewfeickert-talks.github.io/${current_dir}/index.html \
talk.pdf
cp talk.pdf feickert_urssi-summer-school_2024-07-29.pdf

decktape_local: talk.md
docker run --rm -t --net=host -v ${dir_path}:/slides astefanutti/decktape:3.7.0 \
http://localhost:8001 \
localhost_draft.pdf
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# talk-urssi-summer-school-2024
Talk given at as part of July 2024 URSSI Summer School on Research Software and Open Science
# [Distributing your Science: Turning analyses into scientific tools](https://matthewfeickert-talks.github.io/talk-urssi-summer-school-2024/)

Talk given at as part of the [July 2024 US Research Software Sustainability Institute (URSSI) Summer School on Research Software and Open Science](https://github.com/si2-urssi/summerschool-July2024).

Viewable online [here](https://matthewfeickert-talks.github.io/talk-urssi-summer-school-2024/).

A version of this talk was originally given as part of the [ORIGINS Data Science Lab Forum's 2023 seminar series](https://github.com/matthewfeickert-talks/talk-odsl-forum-seminar-2023).

## Acknowledgments

* [Matthew Feickert](http://www.matthewfeickert.com/) is supported by the US National Science Foundation under Cooperative Agreements [OAC-1836650](https://nsf.gov/awardsearch/showAward?AWD_ID=1836650) and [PHY-2323298](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2323298) ([IRIS-HEP](https://iris-hep.org/)).
1 change: 1 addition & 0 deletions assets/auto-render.min.js

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

Binary file added assets/fonts/FontAwesome.otf
Binary file not shown.
Binary file added assets/fonts/KaTeX_AMS-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_AMS-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_AMS-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_AMS-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Bold.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Bold.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Caligraphic-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Bold.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Bold.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Fraktur-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Bold.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Bold.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Italic.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Italic.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Italic.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Main-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-BoldItalic.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-BoldItalic.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-BoldItalic.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-BoldItalic.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Italic.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Italic.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Italic.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Math-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Bold.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Bold.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Italic.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Italic.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Italic.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_SansSerif-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Script-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Script-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Script-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Script-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size1-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size1-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size1-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size1-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size2-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size2-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size2-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size2-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size3-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size3-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size3-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size3-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size4-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size4-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size4-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Size4-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/KaTeX_Typewriter-Regular.eot
Binary file not shown.
Binary file added assets/fonts/KaTeX_Typewriter-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/KaTeX_Typewriter-Regular.woff
Binary file not shown.
Binary file added assets/fonts/KaTeX_Typewriter-Regular.woff2
Binary file not shown.
Binary file added assets/fonts/fontawesome-webfont.eot
Binary file not shown.
Loading

0 comments on commit 66d7173

Please sign in to comment.