Skip to content

Commit 271a94c

Browse files
authored
Merge pull request #2 from gjovanovicst:main
Main
2 parents 4b28f50 + 872c1b3 commit 271a94c

29 files changed

Lines changed: 396 additions & 389 deletions

.github/workflows/ci.yml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
88

99
jobs:
10-
test:
11-
name: Test
12-
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
16-
17-
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v4
20-
21-
- name: Setup Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
26-
- name: Cache pip
27-
uses: actions/cache@v4
28-
with:
29-
path: ~/.cache/pip
30-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
31-
restore-keys: |
32-
${{ runner.os }}-pip-
33-
34-
- name: Install dependencies
35-
run: |
36-
python -m pip install --upgrade pip
37-
pip install -e ".[dev]"
38-
39-
- name: Run linting
40-
run: ruff check .
41-
42-
- name: Run type checking
43-
run: mypy permisio
44-
45-
- name: Run tests
46-
run: pytest --cov=permisio --cov-report=xml
47-
48-
- name: Upload coverage
49-
uses: codecov/codecov-action@v4
50-
with:
51-
file: ./coverage.xml
52-
flags: unittests
53-
name: codecov-python-${{ matrix.python-version }}
54-
55-
build:
56-
name: Build
57-
runs-on: ubuntu-latest
58-
59-
steps:
60-
- name: Checkout code
61-
uses: actions/checkout@v4
62-
63-
- name: Setup Python
64-
uses: actions/setup-python@v5
65-
with:
66-
python-version: "3.11"
67-
68-
- name: Install build dependencies
69-
run: |
70-
python -m pip install --upgrade pip
71-
pip install build twine
72-
73-
- name: Build package
74-
run: python -m build
75-
76-
- name: Check package
77-
run: twine check dist/*
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Cache pip
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.cache/pip
30+
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
31+
restore-keys: |
32+
${{ runner.os }}-pip-
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -e ".[dev]"
38+
39+
- name: Run linting
40+
run: ruff check .
41+
42+
- name: Run type checking
43+
run: mypy permissio
44+
45+
- name: Run tests
46+
run: pytest --cov=permissio --cov-report=xml
47+
48+
- name: Upload coverage
49+
uses: codecov/codecov-action@v4
50+
with:
51+
file: ./coverage.xml
52+
flags: unittests
53+
name: codecov-python-${{ matrix.python-version }}
54+
55+
build:
56+
name: Build
57+
runs-on: ubuntu-latest
58+
59+
steps:
60+
- name: Checkout code
61+
uses: actions/checkout@v4
62+
63+
- name: Setup Python
64+
uses: actions/setup-python@v5
65+
with:
66+
python-version: "3.11"
67+
68+
- name: Install build dependencies
69+
run: |
70+
python -m pip install --upgrade pip
71+
pip install build twine
72+
73+
- name: Build package
74+
run: python -m build
75+
76+
- name: Check package
77+
run: twine check dist/*

0 commit comments

Comments
 (0)