Skip to content

Commit

Permalink
ci: speed up pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed May 30, 2024
1 parent 8902884 commit dec32a6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
- push
- pull_request
concurrency:
group: ${{ github.head_ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
Expand All @@ -18,25 +18,6 @@ jobs:
- 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:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
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 }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ cov-xml:

# Target for installing project dependencies
deps:
$(PIP) install -r requirements.txt -r requirements-dev.txt
$(PIP) install --upgrade pip setuptools wheel -r requirements.txt -r requirements-dev.txt

# Target for installing the project in editable mode
dev:
Expand Down

0 comments on commit dec32a6

Please sign in to comment.