Skip to content

Commit 8a431cb

Browse files
authored
Merge pull request #45 from cibere/fix-workflows-try-2
update workflows again
2 parents 7bcb83f + c30270f commit 8a431cb

File tree

6 files changed

+76
-83
lines changed

6 files changed

+76
-83
lines changed

.github/workflows/build-dist.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/build-docs.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: build
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [ opened, reopened, synchronize ]
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: [ '3.11', '3.12', '3.13' ]
15+
16+
name: docs on ${{ matrix.python-version }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up CPython ${{ matrix.python-version }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install package
28+
run: |
29+
pip install -e .[docs]
30+
31+
- name: Build docs
32+
shell: bash
33+
run: |
34+
cd docs
35+
sphinx-build -b html -j auto -a -n -T -W --keep-going . _build/html
36+
37+
dist:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
python-version: [ '3.11', '3.12', '3.13' ]
43+
44+
name: dist on ${{ matrix.python-version }}
45+
steps:
46+
- uses: actions/checkout@v4
47+
with:
48+
fetch-depth: 0
49+
50+
- name: Set up CPython ${{ matrix.python-version }}
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
55+
- name: Install package
56+
run: |
57+
pip install -e .[docs,tests]
58+
59+
- name: Build distributions
60+
run: |
61+
python -m pip install build
62+
python -m build
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Black
1+
name: Format
22

33
on:
44
push:
55
pull_request:
66
types: [opened, reopened, synchronize]
77

88
jobs:
9-
check:
9+
black:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
fail-fast: false
1313
matrix:
1414
python-version: [ '3.11', '3.12', '3.13' ]
1515

16-
name: check ${{ matrix.python-version }}
16+
name: Black on ${{ matrix.python-version }}
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Set up CPython ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

@@ -33,4 +33,4 @@ jobs:
3333
- name: Run black
3434
if: ${{ always() && steps.install-deps.outcome == 'success' }}
3535
run: |
36-
black --check flogin examples tests
36+
black --check flogin examples tests
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Pyright
1+
name: Lint
22

33
on:
44
push:
55
pull_request:
66
types: [opened, reopened, synchronize]
77

88
jobs:
9-
check:
9+
pyright:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
fail-fast: false
1313
matrix:
1414
python-version: [ '3.11', '3.12', '3.13' ]
1515

16-
name: check ${{ matrix.python-version }}
16+
name: Pyright on ${{ matrix.python-version }}
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Set up CPython ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

@@ -34,4 +34,4 @@ jobs:
3434
id: run-pyright
3535
if: ${{ always() && steps.install-deps.outcome == 'success' }}
3636
run: |
37-
pyright --pythonversion ${{ matrix.python-version }} --pythonplatform Windows --warnings flogin examples tests
37+
pyright --pythonversion ${{ matrix.python-version }} --pythonplatform Windows --warnings flogin examples tests

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
name: check ${{ matrix.python-version }}
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Set up CPython ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

0 commit comments

Comments
 (0)