Skip to content

Commit 4c02ffd

Browse files
committed
Update GitHub workflow configurations
Update actions to run on pull requests as well as main. Update the actions to their latest versions. Skip the dev environment setup as it isn't currently needed.
1 parent f9e177d commit 4c02ffd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Python package
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
48

59
jobs:
610
build:
@@ -11,14 +15,10 @@ jobs:
1115
python-version: [3.8, 3.12]
1216

1317
steps:
14-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1519
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v1
20+
uses: actions/setup-python@v5
1721
with:
1822
python-version: ${{ matrix.python-version }}
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
python -m pip install -e .[dev]
2323
- name: Run tests
2424
run: python run tests

0 commit comments

Comments
 (0)