File tree Expand file tree Collapse file tree 7 files changed +81
-18
lines changed
tests/python/mapping_updater/test_data/usagi_files/to_vocab Expand file tree Collapse file tree 7 files changed +81
-18
lines changed Original file line number Diff line number Diff line change 1+ name : Ruff
2+ on : [push, pull_request]
3+ jobs :
4+ ruff :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v4
8+
9+ - name : Set up Python
10+ uses : actions/setup-python@v5
11+ with :
12+ python-version : " 3.13"
13+
14+ - name : Install uv
15+ uses : astral-sh/setup-uv@v5
16+
17+ - name : Create uv venv
18+ run : uv venv
19+
20+ - name : Install nox and ruff
21+ run : uv pip install nox ruff
22+
23+ - name : Run ruff linter via nox session
24+ run : uv run nox -s lint
Original file line number Diff line number Diff line change 1+ name : publish to PyPI 🐍
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ pypi-publish :
9+ name : upload release to PyPI
10+ runs-on : ubuntu-latest
11+ # Specifying a GitHub environment is optional, but strongly encouraged
12+ environment : publish_to_pypi
13+ permissions :
14+ # IMPORTANT: this permission is mandatory for trusted publishing
15+ id-token : write
16+ contents : read
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ' 3.13'
23+ - name : Install uv
24+ uses : astral-sh/setup-uv@v5
25+ - name : build package distributions
26+ run : uv build
27+ - name : Publish package distributions to PyPI
28+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests for a range of Python versions
2+
3+ name : tests
4+
5+ on : [push, pull_request]
6+
7+ jobs :
8+ tests :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Set up Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : " 3.13"
18+
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v5
21+
22+ - name : Create uv venv
23+ run : uv venv
24+
25+ - name : Install nox
26+ run : uv pip install nox
27+
28+ - name : Test with nox and pytest
29+ run : uv run nox -s tests
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments