Skip to content

Commit 4b4eb03

Browse files
committed
Update github actions
1 parent a163edc commit 4b4eb03

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/blackisort.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ jobs:
1414
run: |
1515
curl -LsSf https://astral.sh/uv/install.sh | sh
1616
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
17-
- name: Install black and isort
17+
- name: Setup virtual environment and install black and isort
1818
run: |
19+
uv venv
20+
source .venv/bin/activate
1921
uv pip install black==23.3.0 isort
2022
- name: Running Black
2123
run: |
24+
source .venv/bin/activate
2225
black --check --diff --line-length 79 .
2326
- name: Running isort
2427
if: always()
2528
run: |
29+
source .venv/bin/activate
2630
isort --check-only --line-length 79 --profile black .

.github/workflows/pythonlint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ jobs:
1717
run: |
1818
curl -LsSf https://astral.sh/uv/install.sh | sh
1919
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
20-
- name: Install dependencies
20+
- name: Setup virtual environment and install dependencies
2121
run: |
22+
uv venv
23+
source .venv/bin/activate
2224
uv pip install flake8
2325
- name: Lint with flake8
2426
run: |
27+
source .venv/bin/activate
2528
# stop the build if there are Python syntax errors or undefined names
2629
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

.github/workflows/pythontests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@ jobs:
3030
run: |
3131
curl -LsSf https://astral.sh/uv/install.sh | sh
3232
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
33-
- name: Install dependencies
33+
- name: Setup virtual environment and install dependencies
3434
run: |
35+
uv venv
36+
source .venv/bin/activate
3537
uv pip install coverage
3638
- name: Setup # needs -e flag for coverage tests to work
37-
run: uv pip install -e ".[harl]"
39+
run: |
40+
source .venv/bin/activate
41+
uv pip install -e ".[harl]"
3842
- name: Run tests and generate coverage report
3943
run: |
44+
source .venv/bin/activate
4045
coverage run -m unittest discover -s testing/ -p "*_test.py"
4146
- name: Upload coverage to Codecov
4247
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)