Test external resources #1199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test external resources | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '16 9 * * *' | |
workflow_dispatch: | |
jobs: | |
test_ext_res: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install bgpq3 / bgpq4 | |
run: | | |
./tests/external_resources/install_bgpq3.sh | |
./tests/external_resources/install_bgpq4.sh | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 coveralls pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Test external resources | |
run: pytest -vs tests/external_resources | |
env: | |
TRAVIS: 1 | |
SECRET_PEERINGDB_API_KEY: ${{ secrets.SECRET_PEERINGDB_API_KEY }} |