Skip to content

Commit

Permalink
Merge pull request #7 from neo4j-labs/develop
Browse files Browse the repository at this point in the history
Release Workflow
  • Loading branch information
AleSim94 authored Sep 11, 2023
2 parents 1466f05 + 4618311 commit 81baced
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/integration_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Integration tests

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.x"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Test with pytest
run: |
pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
38 changes: 38 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
if __name__ == "__main__":
setup(
name="rdflib-neo4j",
version="0.0.1b4",
version="0.1",
author="Jesús Barrasa",
author_email="[email protected]",
author_email="[email protected],",
description="RDFLib Store backed by neo4j",
keywords="neo4j, rdflib, neosemantics, n10s",
long_description="RDFLib Store backed by neo4j",
Expand Down

0 comments on commit 81baced

Please sign in to comment.