Skip to content

Commit 8331067

Browse files
ghukilljonavellecuerdo
authored andcommitted
Run CI for pushes to branches with PRs
1 parent e596837 commit 8331067

File tree

1 file changed

+6
-39
lines changed

1 file changed

+6
-39
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,10 @@
11
name: CI
2-
on: push
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- '.github/**'
36
jobs:
47
test:
5-
# TODO: move this into a shared workflow, https://github.com/MITLibraries/.github/tree/main/.github/workflows
6-
name: Run tests and report coverage
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v4
10-
11-
- name: Install uv
12-
uses: astral-sh/setup-uv@v6
13-
14-
- name: Create virtual environment
15-
run: |
16-
make install
17-
18-
- name: Run tests and make coverage report
19-
run: |
20-
make test
21-
make coveralls
22-
23-
- name: Coveralls
24-
uses: coverallsapp/github-action@v2.3.0
25-
with:
26-
github-token: ${{ secrets.GITHUB_TOKEN }}
27-
fail-on-error: false
8+
uses: mitlibraries/.github/.github/workflows/python-uv-shared-test.yml@main
289
lint:
29-
# TODO: move this into a shared workflow, https://github.com/MITLibraries/.github/tree/main/.github/workflows
30-
name: Run linters
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: actions/checkout@v4
34-
35-
- name: Install uv
36-
uses: astral-sh/setup-uv@v6
37-
38-
- name: Create virtual environment
39-
run: |
40-
make install
41-
42-
- name: Lint
43-
run: make lint
10+
uses: mitlibraries/.github/.github/workflows/python-uv-shared-lint.yml@main

0 commit comments

Comments
 (0)