Skip to content

Commit 049b2df

Browse files
committed
Making progress on switching to uv
1 parent 4b4eb03 commit 049b2df

File tree

15 files changed

+1206
-2899
lines changed

15 files changed

+1206
-2899
lines changed

.github/workflows/blackisort.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
name: black isort
1+
# name: black isort
22

3-
on: [push, pull_request]
3+
# on: [push, pull_request]
44

5-
jobs:
6-
lint:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v3
10-
- uses: actions/setup-python@v4
11-
with:
12-
python-version: 3.8
13-
- name: Install uv
14-
run: |
15-
curl -LsSf https://astral.sh/uv/install.sh | sh
16-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
17-
- name: Setup virtual environment and install black and isort
18-
run: |
19-
uv venv
20-
source .venv/bin/activate
21-
uv pip install black==23.3.0 isort
22-
- name: Running Black
23-
run: |
24-
source .venv/bin/activate
25-
black --check --diff --line-length 79 .
26-
- name: Running isort
27-
if: always()
28-
run: |
29-
source .venv/bin/activate
30-
isort --check-only --line-length 79 --profile black .
5+
# jobs:
6+
# lint:
7+
# runs-on: ubuntu-latest
8+
# steps:
9+
# - uses: actions/checkout@v3
10+
# - uses: actions/setup-python@v4
11+
# with:
12+
# python-version: 3.8
13+
# - name: Install uv
14+
# run: |
15+
# curl -LsSf https://astral.sh/uv/install.sh | sh
16+
# echo "$HOME/.cargo/bin" >> $GITHUB_PATH
17+
# - name: Setup virtual environment and install black and isort
18+
# run: |
19+
# uv venv
20+
# source .venv/bin/activate
21+
# uv pip install black==23.3.0 isort
22+
# - name: Running Black
23+
# run: |
24+
# source .venv/bin/activate
25+
# black --check --diff --line-length 79 .
26+
# - name: Running isort
27+
# if: always()
28+
# run: |
29+
# source .venv/bin/activate
30+
# isort --check-only --line-length 79 --profile black .

.github/workflows/pythonlint.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
on:
2-
push:
3-
branches: "*"
4-
pull_request:
5-
branches: "*"
6-
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- name: Set up Python 3.8
12-
uses: actions/setup-python@v4
13-
with:
14-
python-version: 3.8
15-
architecture: 'x64'
16-
- name: Install uv
17-
run: |
18-
curl -LsSf https://astral.sh/uv/install.sh | sh
19-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
20-
- name: Setup virtual environment and install dependencies
21-
run: |
22-
uv venv
23-
source .venv/bin/activate
24-
uv pip install flake8
25-
- name: Lint with flake8
26-
run: |
27-
source .venv/bin/activate
28-
# stop the build if there are Python syntax errors or undefined names
29-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
1+
# on:
2+
# push:
3+
# branches: "*"
4+
# pull_request:
5+
# branches: "*"
6+
# jobs:
7+
# build:
8+
# runs-on: ubuntu-latest
9+
# steps:
10+
# - uses: actions/checkout@v3
11+
# - name: Set up Python 3.8
12+
# uses: actions/setup-python@v4
13+
# with:
14+
# python-version: 3.10.16
15+
# architecture: 'x64'
16+
# - name: Install uv
17+
# run: |
18+
# curl -LsSf https://astral.sh/uv/install.sh | sh
19+
# echo "$HOME/.cargo/bin" >> $GITHUB_PATH
20+
# - name: Setup virtual environment and install dependencies
21+
# run: |
22+
# uv venv
23+
# source .venv/bin/activate
24+
# uv pip install flake8
25+
# - name: Lint with flake8
26+
# run: |
27+
# source .venv/bin/activate
28+
# # stop the build if there are Python syntax errors or undefined names
29+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

.github/workflows/pythontests.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
on: ['push', 'pull_request']
22
jobs:
33
# Removed macos tests because github actions doesn't support python 3.7 anymore
4-
# osx_mdp_tests:
5-
# runs-on: macos-latest
6-
# steps:
7-
# - uses: actions/checkout@v3
8-
# - name: Set up Python 3.7
9-
# uses: actions/setup-python@v4
10-
# with:
11-
# python-version: '3.7'
12-
# architecture: 'x64'
13-
# - name: Install dependencies
14-
# run: python -m pip install --upgrade pip
15-
# - name: Setup
16-
# run: pip install -e .[harl]
17-
# - name: Run tests
18-
# run: |
19-
# python -m unittest discover -s testing/ -p "*_test.py"
4+
osx_mdp_tests:
5+
runs-on: macos-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Set up Python 3.10.16
9+
uses: actions/setup-python@v4
10+
with:
11+
python-version: 3.10.16
12+
architecture: 'x64'
13+
- name: Install uv
14+
run: |
15+
curl -LsSf https://astral.sh/uv/install.sh | sh
16+
- name: Install dependencies
17+
run: |
18+
uv venv
19+
source .venv/bin/activate
20+
uv pip install -e .[harl]
21+
- name: Run tests
22+
run: |
23+
source .venv/bin/activate
24+
coverage run -m unittest discover -s testing/ -p "*_test.py"
2025
ubuntu_mdp_tests:
2126
runs-on: ubuntu-latest
2227
steps:
2328
- uses: actions/checkout@v3
24-
- name: Set up Python 3.8
29+
- name: Set up Python 3.10.16
2530
uses: actions/setup-python@v4
2631
with:
27-
python-version: 3.8
32+
python-version: 3.10.16
2833
architecture: 'x64'
2934
- name: Install uv
3035
run: |
3136
curl -LsSf https://astral.sh/uv/install.sh | sh
32-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
3337
- name: Setup virtual environment and install dependencies
3438
run: |
3539
uv venv

.uvrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)