File: test.yml

package info (click to toggle)
oarc-dsc-datatool 1.4.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 492 kB
  • sloc: python: 1,151; xml: 859; sh: 125; makefile: 4
file content (32 lines) | stat: -rw-r--r-- 842 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: "Test"

on:
  push:
    branches: [ "develop" ]
  pull_request:
    branches: [ "develop" ]

permissions:
  contents: read

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - name: Set up Python 3.10
      uses: actions/setup-python@v3
      with:
        python-version: "3.10"
    - name: Install dependencies
      run: |
        sudo apt-get install python3-maxminddb python3-yaml wget
        python -m pip install --upgrade pip
        pip install .
    - name: Test
      run: |
        cd tests
        rm ipv4-address-space.csv ipv6-unicast-address-assignments.csv
        wget https://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv
        wget https://www.iana.org/assignments/ipv6-unicast-address-assignments/ipv6-unicast-address-assignments.csv
        ./test.sh