-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from sodascience/develop
Release 1.1.0
- Loading branch information
Showing
108 changed files
with
3,324 additions
and
3,569 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,82 @@ | ||
name: Continuous integration for development | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, develop ] | ||
push: | ||
branches: [ main, develop ] | ||
|
||
jobs: | ||
check: | ||
name: Lint and check types | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[check,extra]" | ||
- name: Lint with Ruff | ||
run: ruff check metasyn | ||
- name: Check types with MyPy | ||
run: mypy metasyn | ||
|
||
test: | ||
name: Run test suite | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
include: | ||
- os: macos-latest | ||
python-version: "3.12" | ||
- os: windows-latest | ||
python-version: "3.12" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[test,extra]" | ||
- name: Test with pytest | ||
run: pytest tests | ||
- name: Check notebook output | ||
if: ${{ matrix.os != 'macos-latest' }} | ||
run: pytest --nbval-lax examples | ||
- name: Test basic example | ||
run: python examples/basic_example.py | ||
- name: Test CLI configuration example | ||
run: | | ||
pip install git+https://github.com/sodascience/metasyn-disclosure-control | ||
pip install . | ||
metasyn create-meta metasyn/demo/demo_titanic.csv --config examples/config_files/example_config.toml | ||
build-docs: | ||
name: Build documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[docs]" | ||
- name: Build docs | ||
run: sphinx-build -M html docs/source docs/build |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Draft PDF | ||
name: Build paper draft PDF | ||
on: | ||
push: | ||
paths: | ||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release Dockerhub | ||
name: Release dockerfile to Dockerhub | ||
|
||
on: | ||
push: | ||
|
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,71 @@ | ||
name: Scheduled CI suite on main and dev branches | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: # also allow manual trigger | ||
|
||
jobs: | ||
check: | ||
name: Lint and check types | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: ["main", "develop"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[check,extra]" | ||
- name: Lint with Ruff | ||
run: ruff check metasyn | ||
- name: Check types with MyPy | ||
run: mypy metasyn | ||
|
||
test: | ||
name: Run test suite | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: ["main", "develop"] | ||
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
include: | ||
- os: macos-latest | ||
python-version: "3.12" | ||
- os: windows-latest | ||
python-version: "3.12" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[test,extra]" | ||
- name: Test with pytest | ||
run: pytest tests | ||
- name: Check notebook output | ||
if: ${{ matrix.os != 'macos-latest' }} | ||
run: pytest --nbval-lax examples | ||
- name: Test basic example | ||
run: python examples/basic_example.py | ||
- name: Test CLI configuration example | ||
run: | | ||
pip install git+https://github.com/sodascience/metasyn-disclosure-control | ||
pip install . | ||
metasyn create-meta metasyn/demo/demo_titanic.csv --config examples/example_config.toml |
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 |
---|---|---|
|
@@ -151,3 +151,6 @@ docs/paper/media | |
|
||
# Generated api docs stuff | ||
docs/source/api/generated | ||
|
||
# uv stuff | ||
uv.lock |
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.