Skip to content

Commit

Permalink
ci: conslidate duplicate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed May 30, 2024
1 parent 452e990 commit 8902884
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 72 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI
on:
- push
- pull_request
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
check-latest: true
cache: 'pip'
- run: make deps
- run: make lint

cov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
check-latest: true
cache: 'pip'
- run: make deps
- run: make dev
- run: make test
- run: make cov-xml
- uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
thresholdAll: 0.8
token: ${{ secrets.GITHUB_TOKEN }}

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
check-latest: true
cache: 'pip'
- run: make deps
- run: make dev
- run: make test

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
check-latest: true
cache: 'pip'
- run: make deps
- run: make build
26 changes: 0 additions & 26 deletions .github/workflows/main.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/pull-request.yaml

This file was deleted.

0 comments on commit 8902884

Please sign in to comment.