Skip to content

Commit dc4373f

Browse files
committed
updates to CI file
1 parent 92a2eab commit dc4373f

File tree

1 file changed

+35
-31
lines changed

1 file changed

+35
-31
lines changed

.github/workflows/ci.yml

+35-31
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
autoformat:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Run black to test code linting
1111
uses: psf/black@stable
1212
with:
@@ -20,54 +20,58 @@ jobs:
2020
matrix:
2121
python-version: ["3.10"]
2222
steps:
23-
- uses: actions/checkout@v2
24-
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
23+
- uses: actions/checkout@v4
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v3
2626
with:
27-
python-version: ${{ matrix.python-version }}
28-
cache: 'pip'
29-
cache-dependency-path: '**/pyproject.toml'
30-
- name: Install dependencies
31-
run: |
32-
pip install -e ".[develop]"
27+
enable-cache: true
28+
cache-dependency-glob: "pyproject.toml"
29+
- name: Set up Python ${{ matrix.python-version }}
30+
run: uv python install ${{ matrix.python-version }}
31+
- name: Install the project
32+
run: uv sync --all-extras --dev
3333
- name: Lint
3434
run: |
35-
pytest . --pylint -m pylint --pylint-rcfile=.pylintrc
35+
uv run pytest . --pylint -m pylint --pylint-rcfile=.pylintrc
3636
static-type-checking:
3737
runs-on: ubuntu-latest
3838
strategy:
3939
matrix:
4040
python-version: ["3.10"]
4141
steps:
42-
- uses: actions/checkout@v2
43-
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v2
42+
- uses: actions/checkout@v4
43+
- name: Install uv
44+
uses: astral-sh/setup-uv@v3
4545
with:
46-
python-version: ${{ matrix.python-version }}
47-
cache: 'pip'
48-
cache-dependency-path: '**/pyproject.toml'
49-
- name: Install dependencies
50-
run: |
51-
pip install -e ".[develop]"
46+
enable-cache: true
47+
cache-dependency-glob: "pyproject.toml"
48+
- name: Set up Python ${{ matrix.python-version }}
49+
run: uv python install ${{ matrix.python-version }}
50+
- name: Install the project
51+
run: uv sync --all-extras --dev
5252
- name: Mypy
5353
run: |
54-
mypy .
54+
uv run mypy .
5555
unit-tests:
5656
runs-on: ubuntu-latest
5757
strategy:
5858
matrix:
5959
python-version: ["3.10"]
6060
steps:
61-
- uses: actions/checkout@v2
62-
- name: Set up Python ${{ matrix.python-version }}
63-
uses: actions/setup-python@v2
64-
with:
65-
python-version: ${{ matrix.python-version }}
66-
cache: 'pip'
67-
cache-dependency-path: '**/pyproject.toml'
68-
- name: Install dependencies
61+
- name: Install LAPACK and BLAS
6962
run: |
70-
pip install -e ".[develop]"
63+
sudo apt-get update
64+
sudo apt-get install -y liblapack-dev libblas-dev
65+
- uses: actions/checkout@v4
66+
- name: Install uv
67+
uses: astral-sh/setup-uv@v3
68+
with:
69+
enable-cache: true
70+
cache-dependency-glob: "pyproject.toml"
71+
- name: Set up Python ${{ matrix.python-version }}
72+
run: uv python install ${{ matrix.python-version }}
73+
- name: Install the project
74+
run: uv sync --all-extras --dev
7175
- name: Pytest
7276
run: |
73-
pytest tests/
77+
uv run pytest tests/

0 commit comments

Comments
 (0)