Skip to content

Commit

Permalink
chore: Refresh example notebooks (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Feb 9, 2024
1 parent 61bbecf commit 1a296b2
Show file tree
Hide file tree
Showing 15 changed files with 438 additions and 316 deletions.
8 changes: 0 additions & 8 deletions .github/actions/install-tools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ runs:
with open(os.environ["GITHUB_ENV"], mode="a") as io:
print(f"VIRTUALENV_PIP={pip.__version__}", file=io)
- name: Install Hatch
shell: bash
env:
PIP_CONSTRAINT: ${{ inputs.constraints }}
run: |
pipx install hatch --verbose
hatch --version
- name: Install Nox
shell: bash
env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
griffe==0.40.0
hatch==1.9.3
nox==2023.4.22
pip==23.3.2
pip-tools==7.3.0
29 changes: 1 addition & 28 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ env:

jobs:
tests:
name: "Test ${{ matrix.python-version }}${{ matrix.nightly && ' (nightly) ' || ' ' }}${{ matrix.nogil && ' (nogil) ' || ' ' }}/ ${{ matrix.os }}"
name: "Test ${{ matrix.python-version }}/ ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental || false }}
env:
Expand All @@ -66,25 +66,6 @@ jobs:
session: "tests"
experimental: true

- python-version: "3.13"
os: "ubuntu-latest"
session: "tests"
experimental: true
nightly: true

# - python-version: "3.13"
# os: "ubuntu-latest"
# session: "tests"
# experimental: true
# nightly: true
# nogil: true

# - python-version: "3.14"
# os: "ubuntu-latest"
# session: "tests"
# experimental: true
# nightly: true

- python-version: "3.12"
os: "windows-latest"
session: "tests"
Expand All @@ -100,7 +81,6 @@ jobs:
fetch-tags: true

- name: Setup Python ${{ matrix.python-version }}
if: "${{ !matrix.nightly }}"
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -111,13 +91,6 @@ jobs:
pyproject.toml
.github/workflows/constraint.txt
- name: Setup Python ${{ matrix.python-version }} (nightly)
if: "${{ matrix.nightly }}"
uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
with:
python-version: "${{ matrix.python-version }}-dev"
# nogil: ${{ matrix.nogil }}

- name: Install tools
uses: ./.github/actions/install-tools

Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ ci:
autoupdate_schedule: monthly
autoupdate_commit_msg: 'chore(deps): pre-commit autoupdate'
skip:
- check-dependabot
- pip-compile

repos:
Expand All @@ -22,14 +21,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.4
rev: 0.28.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
rev: v0.2.1
hooks:
- id: ruff
name: Ruff lint
Expand Down Expand Up @@ -74,3 +73,4 @@ repos:
- id: pip-compile
files: ^pyproject\.toml$
args: ["--extra", "docs", "-o", "docs/requirements.txt", "--pre"]
language_version: python3.12
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
<table>
<tbody>
<tr>
<td>Tests</td>
<td>Project Health</td>
<td>
<a href="https://polar.sh/edgarrmondragon">
<img src="https://polar.sh/embed/seeks-funding-shield.svg?org=edgarrmondragon"/>
</a>
<a href="https://results.pre-commit.ci/latest/github/edgarrmondragon/citric/main">
<img alt="pre-commit.ci status" src="https://results.pre-commit.ci/badge/github/edgarrmondragon/citric/main.svg"/>
</a>
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ services:
command: server /data --console-address ":9001"
profiles:
- web
- notebook

mailhog:
image: mailhog/mailhog
Expand Down
3 changes: 0 additions & 3 deletions docs/contributing/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Ready to contribute? Here's how to set up `citric` for local development.
cd citric
```

1. Install [`hatch`][hatch]:

1. Install [`nox`][nox] (used for automation):

```shell
Expand Down Expand Up @@ -54,7 +52,6 @@ Ready to contribute? Here's how to set up `citric` for local development.
changie new
```
[hatch]: https://hatch.pypa.io/latest/install/
[nox]: https://nox.thea.codes/en/stable/
[pre-commit]: https://pre-commit.com/
[changie]: https://changie.dev/
6 changes: 4 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ Release **v{sub-ref}`version`**. ([What's new?](./changelog.md))

Integration tests are run against a LimeSurvey instance, and both PostgreSQL and MySQL backends, using Docker Compose. The following versions of LimeSurvey were tested for this release:

- {ls_tag}`6.4.4+240130`
- {ls_tag}`6.4.3+240122`
- {ls_tag}`6.4.2+240115`
- {ls_tag}`6.4.1+240108`
- {ls_tag}`5.6.53+240131`
- {ls_tag}`5.6.52+240123`
- {ls_tag}`5.6.51+240116`
- {ls_tag}`5.6.50+240109`

But also, the latest 5.x and 6.x are tested continuously and are expected to work.

## How-to guides

Expand Down
Loading

0 comments on commit 1a296b2

Please sign in to comment.