Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ permissions:
jobs:
release-build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}

steps:
- name: Checkout
Expand All @@ -27,6 +29,14 @@ jobs:
with:
python-version: "3.12"

- name: Get version from setuptools-scm
id: get_version
run: |
python -m pip install setuptools-scm
version=$(python -m setuptools_scm)
echo "version=$version" >> $GITHUB_OUTPUT
echo "Package version: $version"

- name: Build release distributions
run: |
python -m pip install build
Expand All @@ -50,8 +60,8 @@ jobs:
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name: pypi
# PyPI project URL
url: https://pypi.org/project/oscar-python/${{ github.event.release.name }}
# PyPI project URL with the exact version (e.g., 1.3.3 or 1.3.3b3)
url: https://pypi.org/project/oscar-python/${{ needs.release-build.outputs.version }}/

steps:
- name: Retrieve release distributions
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
python-version: '3.12'

- name: Install dependencies
run: python -m pip install pytest pytest-cov webdavclient3 requests boto3 pyyaml aiohttp liboidcagent
run: |
python -m pip install --upgrade pip
python -m pip install -e .[dev]

- name: Run tests
run: python -m pytest tests --cov=oscar_python
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ authors = [{name = "GRyCAP - I3M - UPV"}]
keywords = ["oscar", "faas", "serverless"]

dependencies = [
"requests>=2.31.0",
"requests",
"webdavclient3>=3.14.6",
"boto3>=1.28.0",
"pyyaml>=6.0",
"aiohttp>=3.9.0",
"liboidcagent>=1.0.0",
"boto3",
"pyyaml",
"aiohttp",
"liboidcagent",
]

[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest",
"pytest-cov",
]

[project.urls]
Expand Down