Skip to content

AG-1150: Update source file and provenance versions to pick up IU nom… #286

AG-1150: Update source file and provenance versions to pick up IU nom…

AG-1150: Update source file and provenance versions to pick up IU nom… #286

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
branches: ["dev"]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# test job includes unit tests and coverage
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install pytest pytest-cov
- name: Test with pytest
run: |
pytest tests/ --cov=agoradatatools --cov-report=html
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.python-version }}
path: htmlcov
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
# build job includes integration test
build:
needs: [test]
# The type of runner that the job will run on
name: test data processing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- run: pip install -U setuptools
- run: pip install .
- run: adt test_config.yaml -t ${{secrets.SYNAPSE_PAT}}