@@ -37,62 +37,33 @@ jobs:
3737 runs-on : ubuntu-latest
3838 steps :
3939 - uses : actions/checkout@v4
40- - uses : actions/setup-python@v5
41- with :
42- python-version : 3
43- - name : Install dependencies
44- run : pip install yamllint
40+ - uses : actions/setup-uv@v6
4541 - name : Lint yml files in src/schema
46- run : yamllint -f standard src/schema/ -c .yamllint.yml
42+ run : uvx yamllint -f standard src/schema/ -c .yamllint.yml
4743
4844 # Python best practices
4945 python-style :
5046 runs-on : ubuntu-latest
5147 steps :
5248 - uses : actions/checkout@v4
53- - uses : actions/setup-python@v5
54- with :
55- python-version : 3
56- - run : python -m pip install --upgrade flake8 black isort[colors]
57- - run : black --diff --color --check tools/schemacode
58- - run : isort --diff --color --check tools/schemacode
59- - run : flake8
60- working-directory : tools/schemacode
49+ - uses : actions/setup-uv@v6
50+ - run : uvx ruff format --diff
51+ - run : uvx ruff check
6152
6253 # Avoid Latin phrases to improve readability
6354 latin-phrases :
6455 runs-on : ubuntu-latest
6556 steps :
6657 - uses : actions/checkout@v4
67- - uses : actions/setup-python@v5
68- with :
69- python-version : 3
70- - name : Install dependencies
71- run : |
72- python -m pip install --upgrade pip
73- python -m pip install -r tools/requirements.txt
74- - name : Run Python script to check for Latin phrases - Master
75- if : github.event_name == 'push' && github.ref == 'refs/heads/master'
76- run : |
77- python no-bad-latin.py
78- working-directory : tools
79- - name : Run Python script to check for Latin phrases - Pull Request
80- if : github.event.pull_request
81- run : |
82- python no-bad-latin.py
83- working-directory : tools
58+ - uses : actions/setup-uv@v6
59+ - name : Check for Latin phrases
60+ run : uv run tools/no-bad-latin.py
8461
8562 # Validate CITATION.cff
8663 validate_cff :
8764 runs-on : ubuntu-latest
8865 steps :
89- - uses : actions/checkout@v4
90- - uses : actions/setup-python@v5
91- with :
92- python-version : 3
93- - name : Install dependencies
94- run : |
95- python -m pip install --upgrade pip setuptools
96- pip3 install cffconvert
97- - name : Validate CITATION.cff
98- run : make validate_citation_cff
66+ - uses : actions/checkout@v4
67+ - uses : actions/setup-uv@v6
68+ - name : Validate CITATION.cff
69+ run : uvx cffconvert --validate
0 commit comments