From 4902164ec857f4becc77576e7edadbd52d3ed944 Mon Sep 17 00:00:00 2001 From: Aaron Coburn Date: Sat, 2 Jan 2021 14:56:11 -0500 Subject: [PATCH 1/2] Switch to GH Actions --- .github/workflows/ci-config.yml | 34 +++++++++++++++++++++++++++++++++ .travis.yml | 16 ---------------- appveyor.yml | 14 -------------- 3 files changed, 34 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/ci-config.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/ci-config.yml b/.github/workflows/ci-config.yml new file mode 100644 index 0000000..bf24795 --- /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" From ee9e52b290bda406b9d7f8b2a53744c6c87de2d7 Mon Sep 17 00:00:00 2001 From: Aaron Coburn Date: Sat, 2 Jan 2021 14:57:17 -0500 Subject: [PATCH 2/2] Adjust CI configuration --- .github/workflows/ci-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-config.yml b/.github/workflows/ci-config.yml index bf24795..738294f 100644 --- a/.github/workflows/ci-config.yml +++ b/.github/workflows/ci-config.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | - python -m pip install -upgrade pip + python -m pip install --upgrade pip pip install -r requirements.txt - name: Link with flake8