Skip to content

Commit

Permalink
Use uv in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nut committed Feb 10, 2025
1 parent 06b8b44 commit c72897d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:

jobs:
build:
env:
UV_SYSTEM_PYTHON: 1
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -29,13 +31,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: sudo apt-get install libxml2-dev libxslt1-dev
- run: pip install -r requirements.txt
- run: uv pip install -r requirements.txt
- run: createdb jedeschule_test
env:
PGHOST: localhost
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test_scraper_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ on: [push]

jobs:
build:
env:
UV_SYSTEM_PYTHON: 1
runs-on: ubuntu-latest
name: Show changes in scraper results
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 3.11
architecture: x64
- run: sudo apt-get install libxml2-dev libxslt1-dev
- run: pip install wheel
- run: pip install -r requirements.txt
- run: uv pip install -r requirements.txt
- run: ./test_changes.sh
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GeoAlchemy2==0.8.4
SQLAlchemy==1.3.10
Scrapy==2.11.2
alembic==1.3.3
psycopg2==2.9.9
psycopg2==2.9.10
pyproj==3.6.1
requests==2.32.0
xlrd==1.1.0

0 comments on commit c72897d

Please sign in to comment.