Skip to content

Commit c87620f

Browse files
authored
Merge pull request #28 from advanced-computing/irina1
created the workflows file
2 parents 31c44c4 + b6e3efa commit c87620f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run tests
2+
3+
on: push
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Clone repository
10+
uses: actions/checkout@v6
11+
# https://github.com/actions/setup-python
12+
- name: Install Python
13+
uses: actions/setup-python@v6
14+
with:
15+
python-version: "3.14"
16+
cache: pip
17+
- name: Install dependencies
18+
run: pip install -r requirements.txt
19+
- name: Run tests
20+
# https://pytest-cov.readthedocs.io/en/latest/readme.html
21+
run: pytest --cov
22+
23+
# https://github.com/astral-sh/ruff-action
24+
- name: Set up ruff
25+
uses: astral-sh/ruff-action@v3
26+
with:
27+
version: latest
28+
- name: Lint
29+
run: ruff check
30+
- name: Check formatting
31+
run: ruff format --check

0 commit comments

Comments
 (0)