Skip to content

Commit 80251b4

Browse files
authored
Merge pull request #118 from jelu/test-workflow
Tests
2 parents dcec817 + 7560d82 commit 80251b4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Test"
2+
3+
on:
4+
push:
5+
branches: [ "develop" ]
6+
pull_request:
7+
branches: [ "develop" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.10"
21+
- name: Install dependencies
22+
run: |
23+
sudo apt-get install python3-maxminddb python3-yaml wget
24+
python -m pip install --upgrade pip
25+
pip install .
26+
- name: Test
27+
run: |
28+
cd tests
29+
rm ipv4-address-space.csv ipv6-unicast-address-assignments.csv
30+
wget https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv
31+
wget https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.csv
32+
./test.sh

0 commit comments

Comments
 (0)