diff --git a/.github/workflows/ci-config.yml b/.github/workflows/ci-config.yml new file mode 100644 index 0000000..738294f --- /dev/null +++ b/.github/workflows/ci-config.yml @@ -0,0 +1,34 @@ +name: Python Linked Data Notifications + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.4, 3.5, 3.6, 3.7, 3.8] + + 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 dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Link with flake8 + run: flake8 . --count --show-source --statistics + + - name: Test with pytest + run: python setup.py test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fba65ac..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -python: - - "3.4" - -branches: - only: - - main - -before_script: - - flake8 . - -script: - coverage run --source=ldnlib setup.py test - -after_success: - - coveralls diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 914d862..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,14 +0,0 @@ -environment: - matrix: - - PYTHON: "C:\\Python34" - - PYTHON: "C:\\Python35" - -build: off -install: - - "%PYTHON%\\python.exe -m pip install pytest flake8 rdflib rdflib-jsonld requests" - -before_test: - - "%PYTHON%\\python.exe -m flake8" - -test_script: - - "%PYTHON%\\python.exe setup.py test"