Skip to content

Commit eaef867

Browse files
committed
ci: cache
1 parent 95db1bc commit eaef867

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,34 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
18+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
1919
steps:
20-
- uses: actions/checkout@v4
21-
- name: Setup Go environment
22-
uses: actions/setup-go@v5
23-
with:
24-
go-version: '1.22'
25-
- name: Setup Java JDK
26-
uses: actions/setup-java@v4
27-
with:
28-
distribution: temurin
29-
java-version: 22
30-
cache: maven
31-
- name: Set up Python
32-
uses: actions/setup-python@v5
33-
with:
34-
python-version: ${{ matrix.python-version }}
35-
allow-prereleases: true
36-
check-latest: true
37-
- name: Install dependencies
38-
run: |
39-
sudo apt install libmaxminddb0 libmaxminddb-dev
40-
python -m pip install --upgrade pip
41-
pip install tox
42-
- name: Test
43-
run: tox -e py
44-
- name: Lint
45-
if: matrix.python-version == '3.12'
46-
run: tox -e lint
20+
- uses: actions/checkout@v4
21+
- name: Setup Go environment
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: '1.22'
25+
cache-dependency-path: tests/clients/go/go.sum
26+
- name: Setup Java JDK
27+
uses: actions/setup-java@v4
28+
with:
29+
distribution: temurin
30+
java-version: 22
31+
cache: maven
32+
cache-dependency-path: tests/clients/java/pom.xml
33+
- name: Set up Python
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: ${{ matrix.python-version }}
37+
allow-prereleases: true
38+
check-latest: true
39+
- name: Install dependencies
40+
run: |
41+
sudo apt install libmaxminddb0 libmaxminddb-dev
42+
python -m pip install --upgrade pip
43+
pip install tox
44+
- name: Test
45+
run: tox -e py
46+
- name: Lint
47+
if: matrix.python-version == '3.12'
48+
run: tox -e lint

mmdb_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.2.1"
1+
__version__ = "0.2.2"
22

33
import logging
44
import math

0 commit comments

Comments
 (0)