diff --git a/.devcontainer b/.devcontainer index 190f80b..dbf917b 160000 --- a/.devcontainer +++ b/.devcontainer @@ -1 +1 @@ -Subproject commit 190f80babcba5a15b7ea3a0129c2f72cbec2ca0f +Subproject commit dbf917b1758e464f6f0aced3f51ca28aede8a8df diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..2adcc5d --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,17 @@ +name: CI + +on: + push: + branches: [main] + tags: [v*.*.*] + + pull_request: + branches: [ "main" ] + types: + - synchronize + - opened + - reopened + +jobs: + call_ci: + uses: EffectiveRange/ci-workflows/.github/workflows/python-ci.yaml@v3 diff --git a/.github/workflows/test_and_release.yml b/.github/workflows/test_and_release.yml deleted file mode 100644 index 5fa6ab5..0000000 --- a/.github/workflows/test_and_release.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Test and Release - -on: - push: - branches: main - tags: v*.*.* - - pull_request: - branches: [ "main" ] - types: - - synchronize - - opened - - reopened - -concurrency: - group: ${{ github.workflow }}-${{ github.sha }} - cancel-in-progress: true - -jobs: - test: - name: Build and test - - runs-on: ubuntu-latest - - permissions: - # Gives the action the necessary permissions for publishing new - # comments in pull requests. - pull-requests: write - contents: write - statuses: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Verify changes - uses: EffectiveRange/python-verify-github-action@v1 - with: - coverage-threshold: '95' - - release: - if: startsWith(github.ref, 'refs/tags/') - needs: test - - name: Publish and release - - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: true - - name: Package and publish - uses: EffectiveRange/python-package-github-action@v2 - with: - use-devcontainer: 'true' - container-config: 'amd64-container' - debian-dist-type: 'fpm-deb' - install-packaging-tools: 'false' - - name: Release - uses: EffectiveRange/version-release-github-action@v1 diff --git a/README.md b/README.md index d45b540..868bf81 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ - -[![Test and Release](https://github.com/EffectiveRange/python-context-logger/actions/workflows/test_and_release.yml/badge.svg)](https://github.com/EffectiveRange/python-context-logger/actions/workflows/test_and_release.yml) +[![CI](https://github.com/EffectiveRange/python-context-logger/actions/workflows/ci.yaml/badge.svg)](https://github.com/EffectiveRange/python-context-logger/actions/workflows/ci.yaml) [![Coverage badge](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/EffectiveRange/python-context-logger/python-coverage-comment-action-data/endpoint.json)](https://htmlpreview.github.io/?https://github.com/EffectiveRange/python-context-logger/blob/python-coverage-comment-action-data/htmlcov/index.html) # python-context-logger