Skip to content

Commit

Permalink
build(python): added support for py38, py39
Browse files Browse the repository at this point in the history
  • Loading branch information
shinybrar committed Jun 7, 2024
1 parent f5751aa commit a6600c7
Show file tree
Hide file tree
Showing 8 changed files with 734 additions and 714 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
deployment:
runs-on: ubuntu-latest
steps:
-
name: Create release
id: release-please
uses: google-github-actions/release-please-action@v3
name: Release Please Action
id: release
uses: googleapis/release-please-action@v4.1.1
with:
release-type: python
package-name: workflow
extra-files: |
workflow/__init__.py
manifest-file: .release-please-manifest.json
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
python-version: ["3.8", "3.9", "3.10"]
runs-on: ${{ matrix.os }}
steps:
-
name: Checking out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Setting up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
-
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1

tests:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
python-version: ["3.8", "3.9", "3.10"]
runs-on: ${{ matrix.os }}
needs: pre-commit
steps:
-
name: Checking out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Installing poetry
run: |
Expand All @@ -62,19 +62,19 @@ jobs:
-
name: Run services
run: |
docker-compose -f docker-compose-tutorial.yml up -d --build
docker-compose -f docker-compose.yml up -d
-
name: Installing workflow dependencies
name: Install dependencies
run: |
poetry install
poetry install --all-extras
-
name: Set workspace for testing
name: Setup Workflow Workspace
run: |
poetry run workflow workspace set development
-
name: Run workflow tests
run: |
poetry run pytest --cov . --cov-report=lcov -s -v
poetry run pytest --cov workflow/ --cov-report=lcov -s -v
-
name: Upload coverage report
uses: coverallsapp/github-action@master
Expand All @@ -85,4 +85,4 @@ jobs:
name: Kill services
if: always()
run: |
docker-compose -f docker-compose-tutorial.yml down -v
docker-compose -f docker-compose.yml down -v
5 changes: 5 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extra-files": [
"workflow/__init__.py"
]
}
139 changes: 0 additions & 139 deletions docker-compose-tutorial.yml

This file was deleted.

Loading

0 comments on commit a6600c7

Please sign in to comment.