Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
eb00e9b
fix and update test snaps
leiyre Oct 29, 2024
23d6553
clean code
leiyre Oct 29, 2024
f8fa6eb
chore: Update develop version
frascuchon Oct 29, 2024
7278d1e
[CI] Configure workflow permissions (#5648)
frascuchon Oct 29, 2024
9807e3e
Merge branch 'main' into develop
jfcalvo Oct 30, 2024
7a5bf8a
[BUGFIX] argilla server: Prevent update `dataset.updated_at` when upd…
frascuchon Oct 30, 2024
038172c
Docs: Typo Fix (#5642)
RahulK4102 Oct 31, 2024
02413d1
[Docs] : fix typos in docs (#5612)
FarukhS52 Oct 31, 2024
3b1133a
[CONFIG] `argilla server`: Review and update dependencies (#5649)
frascuchon Nov 4, 2024
bf12fc5
Improve German translation and some aria attributes (#5658)
paulbauriegel Nov 4, 2024
c0afa23
add middleware to redirect /datasets to home page
leiyre Nov 4, 2024
3136085
Add a high-contrast theme & improvements for the forced-colors mode (…
paulbauriegel Nov 4, 2024
d43501e
fix vars
leiyre Nov 4, 2024
74ec465
[BUGFIX]: argilla server: install default `psycopy2` driver used by a…
frascuchon Nov 6, 2024
6c83e87
(Typo): Update README.md (#5655)
kaleaditya779 Nov 6, 2024
02df3d1
[CONFIG] `argilla`: Add Python 3.13 support (#5652)
frascuchon Nov 6, 2024
af2033c
[ENHANCEMENT][REFACTOR] SDK: allow to remove settings (#5584)
frascuchon Nov 6, 2024
d9dce94
fix: improve logic for detecting ChatFields (#5667)
leiyre Nov 6, 2024
229809e
[BUGFIX] `argilla frontend`: redirect after login (#5635)
frascuchon Nov 6, 2024
e425c89
[BUGFIX] `argilla frontend`: Avoid call router.push when opening an e…
frascuchon Nov 7, 2024
940bd40
[BUGFIX] visualisation of highlighted text (#5678)
leiyre Nov 7, 2024
783c7c0
Dataset Creation UI fixes & Improvements (#5670)
leiyre Nov 8, 2024
31b3c6a
Merge branch 'main' into develop
frascuchon Nov 11, 2024
f9ab910
[BUGFIX] Show `Import data` if user is admin or owner (#5688)
leiyre Nov 18, 2024
4249164
docs: Add missing server configuration env vars (#5676)
frascuchon Nov 18, 2024
91ed8ca
[REFACTOR] `argilla server`: Remove passlib dependency (#5674)
frascuchon Nov 18, 2024
a9bf3df
[FEATURE] UI - Add language selection in user settings (#5690)
leiyre Nov 19, 2024
53c734c
⚡️ Fix highlight text (#5693)
damianpumar Nov 19, 2024
6e63b04
[FEATURE] Add Webhooks (#5467)
jfcalvo Nov 19, 2024
c6e3654
🚑 Add missing translation (#5696)
damianpumar Nov 19, 2024
f47f20d
Docs - Add docs for adding a language (#5640)
paulbauriegel Nov 19, 2024
0b5b009
[BUGFIX] `argilla server`: Prevent passing non-string values to text …
frascuchon Nov 20, 2024
9cf0a63
[REFACTOR] `argilla server`: using pydantic v2 (#5666)
frascuchon Nov 20, 2024
1c8f528
fix: Resolve failing tests after pydantic V2 merge (#5700)
frascuchon Nov 20, 2024
5f6c291
[DOCS] Deploy on spaces review (#5704)
sdiazlor Nov 21, 2024
d6bc6f8
[REFACTOR] `argilla`: Align questions to `Resource` API (#5680)
frascuchon Nov 21, 2024
48ba964
chore: Set release version
frascuchon Nov 21, 2024
eb67de3
Merge branch 'main' into develop
frascuchon Nov 21, 2024
0d385be
Merge branch 'develop' into releases/2.5.0
frascuchon Nov 21, 2024
ab6b2f0
chore: Update dev version
frascuchon Nov 21, 2024
6129ce8
[ENHANCEMENT] `argilla server`: Return users on dataset progress (#5701)
frascuchon Nov 21, 2024
004225d
[CI] Update base docker image (#5705)
frascuchon Nov 22, 2024
47f8474
🔥 Fix highlight on bulk (#5698)
damianpumar Nov 22, 2024
e7e51e1
[CHORE] Review changelogs (#5707)
frascuchon Nov 22, 2024
f4f03bb
🔥 Improve plugins loaders (#5697)
damianpumar Nov 26, 2024
524ce35
fix: :bug: Send visible_options prop only when the questions has more…
damianpumar Nov 26, 2024
56864b8
[FEATURE] UI - update dataset list (#5684)
leiyre Nov 26, 2024
4e4d897
🔥 Fix highlight on bulk (#5698)
damianpumar Nov 22, 2024
ea27b9d
🔥 Improve plugins loaders (#5697)
damianpumar Nov 26, 2024
250a59d
fix: :bug: Send visible_options prop only when the questions has more…
damianpumar Nov 26, 2024
b849166
[FEATURE] UI - update dataset list (#5684)
leiyre Nov 26, 2024
1338444
[ENHANCEMENT] `argilla server`: Return users on dataset progress (#5701)
frascuchon Nov 21, 2024
c406121
[EXAMPLES][DOCS] review basic webhooks example (#5710)
frascuchon Nov 27, 2024
7733ad5
[Docs] configure issue form (#5703)
sdiazlor Nov 27, 2024
293b929
chore: Add missing CHANGELOG entry
frascuchon Nov 27, 2024
8cd6df8
Assign field to a span question (#5717)
leiyre Nov 27, 2024
f7faaee
Assign field to a span question (#5717)
leiyre Nov 27, 2024
9f03df1
fix absolute position css for transition
leiyre Nov 28, 2024
8342ca7
[BUGFIX] `argilla`: allow change default distribution values (#5719)
frascuchon Nov 28, 2024
be7fe66
update cursor
leiyre Nov 28, 2024
5e06675
[DOCS] review 2.5.0 docs (#5723)
frascuchon Nov 28, 2024
6131075
update ui
leiyre Nov 28, 2024
37a72c7
fix: Set 2.5 migration tag
frascuchon Nov 28, 2024
d55fe89
Merge branch 'releases/2.5.0' of github.com:argilla-io/argilla into r…
frascuchon Nov 28, 2024
2a58a30
fix lint
leiyre Nov 28, 2024
90f3c85
Merge branch 'main' into develop
frascuchon Nov 29, 2024
62a1fd0
[FEATURE]: Adding Functionality To Update Users (#5615)
sean-hickey-wf Dec 3, 2024
e66d001
[CI] Fix argilla-frontend build by adding the `package-lock.json` fil…
frascuchon Dec 4, 2024
b1820bd
fix: UI - use `last_activity_at` in the dataset list (#5741)
leiyre Dec 10, 2024
e6fe97c
[CI] fix install deps using python.3.13 (#5745)
frascuchon Dec 10, 2024
0cbbdeb
[BUGFIX] prevent errors when updating user (#5742)
frascuchon Dec 10, 2024
1a34f54
[BUGFIX] `argilla`: prevent enum literal validation errors (#5679)
frascuchon Dec 11, 2024
21d07c9
🎉 Improve styles file weight (#5724)
leiyre Dec 11, 2024
0487936
[FEATURE] Add support to update record fields (#5685)
frascuchon Dec 11, 2024
e7f46cc
🚑 feat/check version (#5738)
damianpumar Dec 12, 2024
a74d3eb
[BUGFIX] [TESTS] Remove custom isoformat parsing and let pydantic do …
frascuchon Dec 12, 2024
ebb0fa2
[BUGFIX] Fetch dataset setting when iterate `client.datasets` (#5753)
frascuchon Dec 13, 2024
e3938e8
[BUGFIX] `argilla`: review datasest import with new export flow (#5756)
frascuchon Dec 16, 2024
9f839ce
[FEATURE-BRANCH] feat: dataset export to the Hub (#5730)
jfcalvo Dec 17, 2024
1f8f155
chore: update packages versions
jfcalvo Dec 17, 2024
3b105af
chore: update CHANGELOG.md versions
jfcalvo Dec 17, 2024
4b46a93
chore: increase dev version to 2.7.0
jfcalvo Dec 17, 2024
4d2a893
Feat/improve export hover (#5764)
damianpumar Dec 17, 2024
d6f823b
[CHORE] Add missing fixed entries (#5765)
frascuchon Dec 17, 2024
3643cf3
✨ Add share component (#5727)
damianpumar Dec 18, 2024
a4686ee
🐛 Try
damianpumar Dec 18, 2024
2e42642
Revert "🐛 Try"
damianpumar Dec 18, 2024
12160d0
✨ Fix twice rendering
damianpumar Dec 18, 2024
c54ad60
Merge branch 'main' into develop
jfcalvo Dec 18, 2024
bf1fd7c
✨ Upgrade and remove packages (#5769)
damianpumar Dec 19, 2024
f195251
fix: :bug: Remove word (#5773)
damianpumar Dec 20, 2024
e12d832
Make message and role length configurable (#5784)
hamelsmu Jan 20, 2025
a9284f7
Add docs on chat question configuration (#5785)
davidberenstein1957 Jan 20, 2025
258ed82
Update docker-compose.yaml (#5766)
louisbrulenaudet Jan 20, 2025
8efa39c
[DOCS] add update user to how-to guide (#5755)
sdiazlor Jan 20, 2025
dc3deab
Fix to Return Similarity Scores Along with Records (#5778)
Saikiranbonu1661 Jan 20, 2025
6a00494
[BUGFIX] [ENHANCEMENT] create users and workspaces with predefined ID…
frascuchon Jan 20, 2025
c49305d
[BUGFIX] Prevent index error with empty values (#5787)
frascuchon Jan 21, 2025
045dec2
[BUGFIX] Pass `verify` (and other transport args) when creating the a…
frascuchon Jan 21, 2025
74805e6
chore: Set release version
frascuchon Jan 21, 2025
308b852
chore: Next dev version
frascuchon Jan 21, 2025
8e29938
[BUGFIXES] Fixing error when using PostgreSQL (#5795)
frascuchon Jan 28, 2025
105888a
[BUGFIX] Redirect slash when defining `ARGILLA_BASE_URL` (#5796)
frascuchon Jan 28, 2025
6d6f96e
[REFACTOR][ENHANCEMENT] `argilla server`: better OAuth2 integration (…
frascuchon Jan 29, 2025
6f84185
set release version
frascuchon Feb 6, 2025
cabc9dc
[BUGFIX] revent sending auth headers for public requests (#5804)
frascuchon Feb 6, 2025
d413bd6
Merge branch 'main' into develop
frascuchon Feb 6, 2025
a9c80ec
[BUGFIX] get dataset settings when using `client.datasets.list()` (#5…
frascuchon Feb 14, 2025
ce50eb3
[FEAT][HELM] set ES SSL verification (#5807)
omarmoo5 Feb 17, 2025
72fef19
docs: fixed typo in 'update a user' section from doc (#5806)
patrickfleith Feb 17, 2025
9bc5f10
Merge branch 'main' into develop
frascuchon Feb 17, 2025
d6f61ff
set release version
frascuchon Feb 17, 2025
534821b
prepare changelogs
frascuchon Feb 17, 2025
1bc9407
add order when listing records in test (#5813)
frascuchon Feb 17, 2025
77f5c57
Add redis cluster config (#5799)
paulbauriegel Mar 10, 2025
78cb518
feat: add Japanese translation (#5816)
Tomoya-Matsubara Mar 10, 2025
d421072
fix: update setup-miniconda action to v3 and change miniforge variant…
JonnyTran Jun 5, 2025
dc09dde
Merge tag 'v2.8.0' into merge/argilla-v2.8.0
JonnyTran Jun 5, 2025
c9b22bf
feat: add translation for signin with provider in German
JonnyTran Jun 5, 2025
db384a4
fix: `argilla-v1` tests
JonnyTran Jun 5, 2025
71c0ec2
chore: update Elasticsearch version to 8.17.0 across configurations
JonnyTran Jun 5, 2025
587d39a
fix: `argilla-v1` tests
JonnyTran Jun 5, 2025
563f791
feat: enhance test coverage reporting in CI workflow
JonnyTran Jun 5, 2025
1f747ec
fix: update default image name in deploy workflow and adjust coverage…
JonnyTran Jun 5, 2025
40b2444
feat: add test coverage reporting and update test scripts in CI workf…
JonnyTran Jun 5, 2025
efecbd9
fix: adjust test command options for improved performance and consist…
JonnyTran Jun 5, 2025
4309214
feat: update codecov action to v5.4.3 and enhance test coverage commands
JonnyTran Jun 5, 2025
7f342af
ci: Fixes #74, `argilla-frontend` tests for RenderTable and Records c…
JonnyTran Jun 5, 2025
0b6aedb
fix: `npm run build` errors due to accessing private prop
JonnyTran Jun 5, 2025
1476536
fix: correct spelling in docker image name and update Python requirem…
JonnyTran Jun 5, 2025
753382d
fix: update pyarrow dependency version to allow for broader compatibi…
JonnyTran Jun 5, 2025
4f12937
ci: use `uv` with `pdm install`
JonnyTran Jun 5, 2025
003d4b9
ci: use `uv` with `pdm install` in `argilla-server.yml`
JonnyTran Jun 5, 2025
726b9b0
fix: update pyarrow and fastparquet dependencies for compatibility ac…
JonnyTran Jun 5, 2025
18f276b
fix: dev dependencies not being automatically installed
JonnyTran Jun 5, 2025
04312fc
fix: remove verbose flag from pdm install commands in workflows
JonnyTran Jun 5, 2025
1e17dca
fix: streamline dependency installation in workflows and update test …
JonnyTran Jun 5, 2025
c2ee188
fix: update uv setup action to version 6.1.0 and enable environment a…
JonnyTran Jun 5, 2025
0307e0a
fix: downgrade uv setup action to version 5 and enable dev dependenci…
JonnyTran Jun 5, 2025
cbb12a5
fix: remove uv setup steps and streamline dependency installation in …
JonnyTran Jun 5, 2025
6e7e53d
fix: update argilla workflow to use develop image and streamline depe…
JonnyTran Jun 5, 2025
75d245f
fix: add skip_on decorator to handle HfHubHTTPError in tests
JonnyTran Jun 5, 2025
c75a979
fix: update Python version requirements in pyproject.toml and enhance…
JonnyTran Jun 5, 2025
fd4a152
fixes
JonnyTran Jun 5, 2025
78f9e15
fix: correct import path for skip_on utility in test_hub_dataset_expo…
JonnyTran Jun 5, 2025
4d77650
fix: refactor skip_on decorator and update Python version requirement…
JonnyTran Jun 5, 2025
db6e5ed
fix: update PDM configuration to use virtual environments
JonnyTran Jun 5, 2025
099cfa6
fix: update PDM configuration to create and use virtual environments
JonnyTran Jun 5, 2025
ba54199
fix: simplify PDM configuration by removing virtual environment setup
JonnyTran Jun 5, 2025
56b010c
fix: remove uv setup and PDM virtual environment configuration from w…
JonnyTran Jun 5, 2025
149b467
fix: update pdm.lock
JonnyTran Jun 5, 2025
e87e2a0
fix: enhance PDM configuration to support uv installation and caching
JonnyTran Jun 5, 2025
bcc9919
fix: set PDM_IGNORE_ACTIVE_VENV environment variable to bypass active…
JonnyTran Jun 5, 2025
3a3160f
fix: remove --no-self option from pdm install command in workflow
JonnyTran Jun 5, 2025
7db33fd
fix: update datasets dependency version to >=3.0.0
JonnyTran Jun 5, 2025
e9f7efd
fix: improve error handling in skip_on function for HfHubHTTPError
JonnyTran Jun 5, 2025
ed39b99
fix: enhance skip_on decorator to accept exception type and improve e…
JonnyTran Jun 5, 2025
d728ad2
fix: add caching for uv dependencies and improve cache configuration
JonnyTran Jun 6, 2025
0ad1268
fix: update spacy dependency for Python version compatibility
JonnyTran Jun 6, 2025
0a37988
fix: add GitHub Actions workflows for building and caching `argilla` …
JonnyTran Jun 6, 2025
6457c18
fix: remove pdm.lock update command from workflow steps for argilla a…
JonnyTran Jun 6, 2025
93cc3d6
fix: update Python version to 3.12 in argilla-server workflow
JonnyTran Jun 6, 2025
c593c2c
fix: argilla-server test errors
JonnyTran Jun 6, 2025
b0150f1
fix: update dependencies and handling for Python 3.13 compatibility
JonnyTran Jun 6, 2025
8641097
fix: update spaCy dependency handling and enable virtual environment …
JonnyTran Jun 6, 2025
4aede10
fix: optimize caching and update uv installation steps in argilla wor…
JonnyTran Jun 6, 2025
1cc1bd0
fix: enhance caching and add test coverage command in argilla workflows
JonnyTran Jun 6, 2025
eb29452
fix: argilla.yml workflows
JonnyTran Jun 6, 2025
f79e88a
fix: allow integration test fails in argilla workflow
JonnyTran Jun 6, 2025
f7416be
fix: pyproject.toml deps and pytest verbosity
JonnyTran Jun 6, 2025
4143b8b
fix: update argilla workflows for local storage and enhance test verb…
JonnyTran Jun 6, 2025
570c8c1
fix: update spaCy and pyarrow version constraints in pyproject.toml
JonnyTran Jun 6, 2025
205abe8
revert argilla python 3.13 deps
JonnyTran Jun 6, 2025
05cf6c6
fix: update CLI command invocations to use 'extralit' instead of 'pyt…
JonnyTran Jun 6, 2025
de52610
fix: argilla integration tests
JonnyTran Jun 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
network_mode: host

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
ports:
- "9200:9200"
- "9300:9300"
Expand Down
2 changes: 0 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ When contributing to Extralit, consider these guidelines:
- Keep database models focused on structure, not behavior
- Use validators for input validation
4. **Write tests**: Add tests for new functionality in the appropriate test directories
5. **Document your changes**: Update documentation when adding or changing features

## Common Development Tasks

Expand All @@ -185,4 +184,3 @@ When contributing to Extralit, consider these guidelines:
2. Create or update components in `components/features/`
3. Connect to the backend using services in `v1/infrastructure/services/`
4. Add tests for the new functionality

86 changes: 86 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# GitHub Actions Workflows

This directory contains GitHub Actions workflows for building, testing, and deploying the Extralit project. The workflows are designed to run on various events, such as pushes to specific branches, pull requests, and manual triggers.

## Key Workflows

### `argilla.yml`

Builds and publishes the `argilla` SDK Python package.

- **Trigger**: Push to main/develop/releases branches, pull requests, or manual dispatch
- **Python versions**: 3.9, 3.10, 3.11, 3.12, 3.13
- **Key steps**:
- Build and test the package
- Upload test coverage to Codecov
- Publish to PyPI

#### Python 3.13 Compatibility

Python 3.13 support requires special handling due to some dependencies not yet being fully compatible:

- The `spacy` dependency is specified with version conditions based on the Python version (v3.8.0+ for Python 3.13)
- These conditional dependencies ensure the package can be built and tested on Python 3.13

### `argilla-server.yml`

Builds and publishes the `argilla-server` package.

- **Trigger**: Push to main/develop/releases branches, pull requests, or manual dispatch
- **Key steps**:
- Run Elasticsearch, PostgreSQL, Redis, and MinIO services
- Build and test the server package
- Build Docker images
- Publish to PyPI
- **Frontend integration**: Includes steps to build the frontend and incorporate it into the server package

## Caching Strategy

The workflows use multiple caching strategies to improve build performance:

1. **PDM cache**: Through the `setup-pdm` action
2. **UV cache**: Through the `actions/cache` action
- Key format: `{os}-uv-{python-version}-{pdm_hash}` for argilla
- Key format: `{os}-uv-server-{pdm_hash}` for argilla-server
- Paths cached: `~/.cache/uv`, `~/.cache/pip`

The UV cache uses the PDM lockfile hash to ensure the cache is invalidated when dependencies change. This approach provides more precise cache invalidation than date-based keys.

## Environment Variables

The workflows set various environment variables:

- `UV_CACHE_DIR`: Location of the UV cache
- `UV_NO_WAIT`: Prevent UV from waiting for operations to complete (improves CI performance)
- `UV_SYSTEM_PYTHON`: Use the system Python instead of a virtual environment
- `PDM_IGNORE_ACTIVE_VENV`: Ignore active virtual environments

Additional environment variables are set in specific workflows:
- For `argilla-server.yml`: Database connection variables for Postgres, Elasticsearch, Redis, and MinIO
- For `argilla.yml`: HuggingFace credentials for integration tests

## Common Issues & Solutions

### Package caching not working

If dependencies are still being downloaded despite cache hits:

1. Ensure `pdm.lock` is up-to-date with `pyproject.toml` (run `pdm lock --no-sync`)
2. Make sure the `pdm.lock` file is committed to the repository (not gitignored)
3. Check that the cache key properly includes the lockfile hash
4. Verify that both directories (`~/.cache/uv` and `~/.cache/pip`) are being cached

### Incompatible dependencies

For Python 3.13 or newer Python versions:

1. Use conditional dependencies in `pyproject.toml` with version specifiers
2. Add special handling in workflows for these Python versions
3. Skip tests that depend on incompatible packages

## Best Practices

1. Always commit the `pdm.lock` file to ensure reproducible builds
2. Use conditional dependencies for Python version compatibility
3. Use caching effectively with proper invalidation strategies
4. Set up proper test coverage reporting
2 changes: 1 addition & 1 deletion .github/workflows/argilla-frontend.deploy-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
image-name:
description: The name of the Docker image to deploy.
type: string
default: argilla/argilla-quickstart-for-dev
default: extralit/argilla-quickstart-for-dev
image-version:
description: The version of the Docker image to deploy. In the form pr-<PR_NUMBER>.
type: string
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/argilla-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,20 @@ jobs:
run: |
npm run lint

- name: Run tests 🧪
- name: Run tests with coverage 🧪
id: run-tests
continue-on-error: true
run: |
npm run test
npm run test:coverage

- name: Upload frontend test coverage
if: always()
uses: codecov/codecov-action@v5.4.3
Comment thread Dismissed
with:
files: ./coverage/lcov.info
flags: frontend
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

- name: Build package 📦
env:
Expand All @@ -85,7 +95,7 @@ jobs:
path: argilla-frontend/dist

build_dev_docker_image:
name: Build development argilla-fronted docker image
name: Build development argilla-frontend docker image
needs: build
uses: ./.github/workflows/argilla-frontend.build-push-dev-frontend-docker.yml
if: |
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/argilla-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.0
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
ports:
- 9200:9200
env:
Expand Down Expand Up @@ -88,15 +88,26 @@ jobs:
- name: Checkout Code 🛎
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
Comment thread Fixed
Comment thread Fixed
with:
pyproject-file: "argilla-server/pyproject.toml"
enable-cache: true
cache-local-path: ~/.cache/uv
cache-dependency-glob: "argilla-server/pdm.lock"

- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version-file: argilla-server/pyproject.toml
cache-dependency-path: argilla-server/pdm.lock
cache: true
cache-dependency-path: argilla-server/pdm.lock

- name: Install dependencies
run: pdm install
run: |
pdm config use_uv true
pdm config python.install_root "$(uv python dir)"
pdm install --dev

- name: Run tests 📈
id: run-tests
Expand All @@ -107,13 +118,13 @@ jobs:
ARGILLA_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/argilla
ARGILLA_ELASTICSEARCH=http://localhost:9200
ARGILLA_SEARCH_ENGINE=elasticsearch
pdm test tests/unit -vs --cov=argilla_server --cov-report=xml:coverage.xml --junitxml=junit.xml -o junit_family=legacy --tb=short
pdm test-cov tests/unit

- name: Upload test coverage
if: always()
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5.4.3
Comment thread Fixed
Comment thread Dismissed
with:
file: coverage.xml
files: coverage.xml
flags: argilla-server
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/argilla-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
uses: actions/checkout@v4

- name: Setup Conda Env 🐍
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: third-party GitHubAction not pinned by hash
Click Remediation section below to solve this issue
with:
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
miniforge-version: latest
use-mamba: true
activate-environment: argilla
Expand Down Expand Up @@ -72,19 +72,19 @@
- name: Run unit tests 📈
continue-on-error: true
run: |
pip install -e ".[server,listeners]"
uv pip install -e ".[server,listeners]"
pytest tests/unit -vs

- name: Run tests with pandas v2 📈
continue-on-error: true
run: |
pip install "pandas~=2.0" pytest-custom_exit_code
uv pip install "pandas~=2.0" pytest-custom_exit_code
pytest --suppress-no-test-exit-code tests/unit -vs

- name: Run tests with pydantic v2 📈
continue-on-error: true
run: |
pip install "pydantic~=2.0" pytest-custom_exit_code
uv pip install "pydantic~=2.0" pytest-custom_exit_code
pytest --suppress-no-test-exit-code tests/unit -vs

- name: Build Package 🍟
Expand Down
60 changes: 56 additions & 4 deletions .github/workflows/argilla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
build:
services:
argilla-server:
image: extralitdev/argilla-hf-spaces
image: extralitdev/argilla-hf-spaces:develop
ports:
- 6900:6900
env:
Expand All @@ -38,6 +38,10 @@ jobs:
USERNAME: argilla
PASSWORD: 12345678
API_KEY: argilla.apikey
# Configure storage to use local files instead of MinIO
ARGILLA_S3_ENDPOINT: ""
ARGILLA_S3_ACCESS_KEY: ""
ARGILLA_S3_SECRET_KEY: ""
runs-on: ubuntu-22.04
defaults:
run:
Expand All @@ -48,6 +52,15 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
Comment thread Fixed
Comment thread Fixed
Comment thread Fixed
with:
pyproject-file: "argilla/pyproject.toml"
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-local-path: ~/.cache/uv
ignore-nothing-to-cache: true
cache-dependency-glob: "argilla/pdm.lock"
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
Expand All @@ -56,22 +69,61 @@ jobs:
cache-dependency-path: |
argilla/pdm.lock
- name: Install dependencies
env:
PDM_IGNORE_ACTIVE_VENV: 1
run: |
pdm config use_uv true
pdm config python.install_root "$(uv python dir)"

# Special handling for Python 3.13
if [[ "${{ matrix.python-version }}" == "3.13" ]]; then
uv pip install --only-binary=:all: spacy thinc pyarrow
fi

pdm install
uv cache prune --ci
- name: Wait for argilla server to start
run: |
while ! curl -XGET http://localhost:6900/api/_status; do sleep 5; done
# Create a directory for local storage that the container can access
mkdir -p /tmp/argilla-files
chmod -R 777 /tmp/argilla-files
- name: Set huggingface hub credentials
run: |
echo "HF_TOKEN_ARGILLA_INTERNAL_TESTING=${{ secrets.HF_TOKEN_ARGILLA_INTERNAL_TESTING }}" >> "$GITHUB_ENV"
echo "Enable HF access token"
- name: Run unit tests
id: tests-unit
continue-on-error: true
run: |
pdm run test tests/unit
pdm run test-cov tests/unit

- name: Run integration tests
id: tests-integration
continue-on-error: true
run: |
pdm run test tests/integration
pdm run test-cov tests/integration

- name: Generate coverage report
if: always()
continue-on-error: true
run: |
pdm run coverage xml -o coverage.xml
pdm run coverage report

- name: Upload test coverage
if: always()
uses: codecov/codecov-action@v5.4.3
Comment thread Fixed
Comment thread Dismissed
with:
files: coverage.xml
flags: argilla
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

- name: Check test status
if: steps.tests-unit.outcome == 'failure'
run: exit 1

- name: Build package
run: |
pdm build
Expand All @@ -87,7 +139,7 @@ jobs:
publish_release:
name: Publish Release
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}

permissions:
# This permission is needed for private repositories.
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ sw.*

# yarn & npm
yarn.lock
package-lock.json

# App generated files
src/**/server/static/
Expand Down
8 changes: 8 additions & 0 deletions argilla-frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ These are the section headers that we use:
* "Security" in case of vulnerabilities.
-->

## [Extralit] [0.5.0](https://github.com/extralit/extralit/compare/v0.4.1...v0.5.0)


## [Argilla] [2.8.0](https://github.com/argilla-io/argilla/compare/v2.7.1...v2.8.0)

### Added

- Added Japanese language ([#5816](https://github.com/argilla-io/argilla/pull/5816)). Contributed by @Tomoya-Matsubara.

## [Argilla] [2.7.1](https://github.com/argilla-io/argilla/compare/v2.7.0...v2.7.1)

Expand Down
1 change: 1 addition & 0 deletions argilla-frontend/__mocks__/styleMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};

Check failure on line 1 in argilla-frontend/__mocks__/styleMock.js

View workflow job for this annotation

GitHub Actions / Build argilla-frontend

Insert `⏎`
Loading
Loading