Skip to content

Commit d681dcd

Browse files
committed
Update GitHub Actions
1 parent 9637b7d commit d681dcd

2 files changed

Lines changed: 24 additions & 18 deletions

File tree

.github/workflows/lint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ name: lint
22
on:
33
pull_request:
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
flake8:
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-python@v2
12+
- uses: actions/checkout@v6
13+
- uses: actions/setup-python@v6
1114
with:
12-
python-version: 3.9
15+
python-version: "3.10"
1316

1417
- uses: TrueBrain/actions-flake8@v2
1518
with:

.github/workflows/test.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,29 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v1
15-
with:
16-
python-version: 3.9
16+
- uses: actions/checkout@v6
17+
- uses: actions/setup-python@v6
18+
with:
19+
python-version: "3.10"
1720

18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install -r requirements.txt -r requirements-dev.txt
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt -r requirements-dev.txt
2225
23-
- run: pip install pytest-github-actions-annotate-failures
26+
- run: pip install pytest-github-actions-annotate-failures
2427

25-
- run: py.test --cov=rain_api_core --cov-report=term-missing --cov-report=xml --cov-branch --doctest-modules rain_api_core tests
28+
- run: py.test --cov=rain_api_core --cov-report=term-missing --cov-report=xml --cov-branch --doctest-modules rain_api_core tests
2629

27-
- name: Report coverage
28-
uses: codecov/codecov-action@v4
29-
with:
30-
token: ${{ secrets.CODECOV_TOKEN }}
31-
fail_ci_if_error: true
30+
- name: Report coverage
31+
uses: codecov/codecov-action@v6
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
fail_ci_if_error: true

0 commit comments

Comments
 (0)