Skip to content

Commit 6510766

Browse files
committed
Set environment variables for all steps
1 parent 6e68fb5 commit 6510766

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/test-libmaxminddb.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818

1919
name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
2020
runs-on: ${{ matrix.platform }}
21+
env:
22+
MAXMINDDB_REQUIRE_EXTENSION: 1
23+
MAXMINDDB_USE_SYSTEM_LIBMAXMINDDB: 1
24+
MM_FORCE_EXT_TESTS: 1
2125

2226
steps:
2327
- name: Checkout
@@ -40,19 +44,14 @@ jobs:
4044
run: sudo apt install libmaxminddb-dev
4145
if: matrix.platform == 'ubuntu-latest'
4246

47+
- name: Install libmaxminddb
48+
run: brew install libmaxminddb
49+
if: matrix.platform == 'macos-latest'
50+
4351
- name: Build with Werror and Wall
4452
run: python setup.py build
4553
env:
4654
CFLAGS: "-Werror -Wall -Wextra"
47-
MAXMINDDB_REQUIRE_EXTENSION: 1
48-
49-
- name: Install libmaxminddb
50-
run: brew install libmaxminddb
51-
if: matrix.platform == 'macos-latest'
5255

5356
- name: Test with tox (system libmaxminddb)
5457
run: tox
55-
env:
56-
MAXMINDDB_REQUIRE_EXTENSION: 1
57-
MAXMINDDB_USE_SYSTEM_LIBMAXMINDDB: 1
58-
MM_FORCE_EXT_TESTS: 1

0 commit comments

Comments
 (0)