Skip to content

Commit 829c525

Browse files
authored
Merge pull request #46 from ayasyrev:gh_ci
Gh_ci
2 parents a56db47 + 88ea858 commit 829c525

File tree

4 files changed

+27
-34
lines changed

4 files changed

+27
-34
lines changed

.github/workflows/coverage.yml

-19
This file was deleted.

.github/workflows/deploy_docs.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ name: Deploy_docs
22
on:
33
push:
44
branches:
5-
- master
65
- main
76
jobs:
87
deploy:
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-python@v2
10+
- uses: actions/checkout@main
11+
- uses: actions/setup-python@main
1312
with:
1413
python-version: 3.x
1514
- run: pip install mkdocs-material

.github/workflows/lint.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Lint
22
on:
33
push:
44
branches:
5-
- dev
5+
- dev
66
- main
77
jobs:
88
tests:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-python@v2
11+
- uses: actions/checkout@main
12+
- uses: actions/setup-python@main
1313
with:
1414
python-version: "3.11"
1515
architecture: x64
16-
- run: pip install nox
17-
- run: nox -p "3.11" -f noxfile_lint.py
16+
- run: pip install ruff
17+
- run: ruff check .

.github/workflows/tests.yml

+20-7
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,33 @@ name: Tests
22
on:
33
push:
44
branches:
5-
- dev
5+
- dev
66
- main
77
jobs:
88
tests:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python: ["3.8", "3.9", "3.10", "3.11",]
13-
name: Python ${{ matrix.python }}
12+
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1413
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v2
14+
- name: Checkout
15+
uses: actions/checkout@main
16+
- name: Setup Python ${{ matrix.python }}
17+
uses: actions/setup-python@main
1718
with:
1819
python-version: ${{ matrix.python }}
1920
architecture: x64
20-
- run: pip install nox
21-
- run: nox -p ${{ matrix.python }}
21+
22+
- name: Install
23+
run: |
24+
pip install uv
25+
uv pip install --system .[test] "coverage[toml]"
26+
- name: Tests
27+
run: pytest --cov
28+
29+
- name: Coverage
30+
if: ${{ matrix.python == '3.11' }}
31+
uses: codecov/codecov-action@main
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
slug: ayasyrev/argparsecfg

0 commit comments

Comments
 (0)