55 branches :
66 - main
77 pull_request :
8+ workflow_dispatch :
89
910jobs :
1011 lint :
1112 runs-on : ubuntu-latest
1213 steps :
13- - uses : actions/checkout@v4
14- - uses : actions /setup-python@v5
14+ - uses : actions/checkout@v6
15+ - uses : astral-sh /setup-uv@v7
1516 with :
16- cache : pip
17- cache-dependency-path : |
18- dev-requirements.txt
19- fluent.syntax/setup.py
20- fluent.runtime/setup.py
21- - run : python -m pip install -r dev-requirements.txt
22- - run : python -m pip install ./fluent.syntax ./fluent.runtime
23- - run : python -m flake8
24- - run : python -m mypy fluent.syntax/fluent fluent.runtime/fluent
17+ python-version : 3.8
18+ - uses : actions/setup-python@v6
19+ - run : uv sync --dev --all-packages
20+ - run : uv run python -m flake8
21+ - run : uv run mypy fluent.syntax/fluent fluent.runtime/fluent
2522 test :
2623 runs-on : ${{ matrix.os }}
2724 strategy :
2825 matrix :
2926 os : [ubuntu-22.04, windows-2022]
30- python-version : [3.7, 3. 8, 3.9, "3.10", 3.11, 3.12, pypy3.9, pypy3.10]
27+ python-version : [3.8, 3.9, "3.10", 3.11, 3.12, pypy3.9, pypy3.10]
3128 steps :
32- - uses : actions/checkout@v4
33- - uses : actions /setup-python@v5
29+ - uses : actions/checkout@v6
30+ - uses : astral-sh /setup-uv@v7
3431 with :
3532 python-version : ${{ matrix.python-version }}
36- cache : pip
37- cache-dependency-path : |
38- fluent.syntax/setup.py
39- fluent.runtime/setup.py
40- - run : python -m pip install ./fluent.syntax ./fluent.runtime
41- - run : python -m unittest discover -s fluent.syntax
42- - run : python -m unittest discover -s fluent.runtime
33+ - run : uv sync --dev --all-packages
34+ - run : uv run python -m unittest discover -s fluent.syntax
35+ - run : uv run python -m unittest discover -s fluent.runtime
4336
44- # Test compatibility with the oldest Python version we claim to support,
45- # and for fluent.runtime's compatibility with a range of fluent.syntax versions.
37+ # Test fluent.runtime's compatibility with a range of fluent.syntax versions.
4638 compatibility :
47- runs-on : ubuntu-20 .04 # https://github.com/actions/setup-python/issues/544
39+ runs-on : ubuntu-22 .04
4840 strategy :
4941 matrix :
5042 fluent-syntax :
@@ -53,10 +45,11 @@ jobs:
5345 - fluent.syntax==0.18.1 six
5446 - fluent.syntax==0.17.0 six
5547 steps :
56- - uses : actions/checkout@v3
57- - uses : actions /setup-python@v4
48+ - uses : actions/checkout@v6
49+ - uses : astral-sh /setup-uv@v7
5850 with :
59- python-version : 3.6
60- - run : python -m pip install ${{ matrix.fluent-syntax }}
61- - run : python -m pip install ./fluent.runtime
62- - run : python -m unittest discover -s fluent.runtime
51+ python-version : 3.8
52+ - run : uv venv --python 3.8
53+ - run : uv pip install ${{ matrix.fluent-syntax }}
54+ - run : uv pip install ./fluent.runtime
55+ - run : uv run python -m unittest discover -s fluent.runtime
0 commit comments