Skip to content

Commit f55dd7c

Browse files
authored
create c3po-test.yml
1 parent 202fd5b commit f55dd7c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/c3po-test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: c3po pylint and pytest
5+
6+
on: [push]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python 3.10
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: "3.10"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install pylint
27+
- name: Analysing the code with pylint
28+
run: |
29+
pylint $(git ls-files '*.py')
30+
- name: Test with pytest
31+
run: |
32+
ENVIRONMENT=local pytest --cov

0 commit comments

Comments
 (0)