Skip to content

Commit

Permalink
Merge pull request #278 from canonical/IAM-1342
Browse files Browse the repository at this point in the history
IAM-1342: standardize ci
  • Loading branch information
shipperizer authored Mar 7, 2025
2 parents f7d322d + 36a2e5c commit 0907b52
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 60 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci
run-name: CI for ${{ github.sha }} on ${{ github.ref_name }}

on:
workflow_dispatch:
push:
branches:
- "main"
- "release-**"
- "track/**"
pull_request:
branches:
- "*"

jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install dependencies
run: python3 -m pip install tox
- name: Run linters
run: tox -e lint

tests:
name: Run Tests
uses: ./.github/workflows/tests.yaml
28 changes: 0 additions & 28 deletions .github/workflows/on_pull_request.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/on_push.yaml

This file was deleted.

0 comments on commit 0907b52

Please sign in to comment.