-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 889 Bytes
/
pr.yml
File metadata and controls
38 lines (31 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: CI - Pull Request
on:
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
environment: ci-approval
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python & install tools
run: |
sudo apt-get update
curl -sSL https://install.python-poetry.org | python3 -
curl -sL https://taskfile.dev/install.sh | sh
sudo mv ./bin/task /usr/local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: task install-deps
- name: Run lint
run: task lint
- name: Run tests
run: task test
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: pr
name: pr-check
fail_ci_if_error: true