Skip to content

Commit 94f8c9f

Browse files
committed
Run scripts in geonamescache-dev env
1 parent e0e86c9 commit 94f8c9f

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,27 @@ jobs:
2525
python-version: ['3.10', '3.11', '3.12']
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929

3030
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
34+
cache: 'pip'
3435

3536
- name: Install Hatch
3637
run: pip install --upgrade hatch
3738

38-
- name: Activate Hatch
39-
run: hatch shell geonamescache-dev
40-
4139
- name: Run static analysis
4240
run: hatch fmt --linter
4341

4442
- name: Download data
45-
run: bin/download_data.py
43+
run: hatch run geonamescache-dev:bin/download_data.py
4644

4745
- name: Create JSON files
4846
env:
4947
GEONAMES_USER: ${{ secrets.GEONAMES_USER }}
50-
run: make json
48+
run: hatch run geonamescache-dev:make json
5149

5250
- name: Run tests
5351
run: hatch test --python ${{ matrix.python-version }} --cover --randomize --parallel --retries 2 --retry-delay 1

0 commit comments

Comments
 (0)