Skip to content

Commit baf1e85

Browse files
committed
Update GitHub Actions
1 parent 7b8dabb commit baf1e85

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.github/workflows/pypi.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Upload to PyPI
22

33
on:
4-
# release:
5-
# types: [created]
64
push:
75
tags:
8-
- 'v*.*.*'
6+
- "v*.*.*"
97
jobs:
108
deploy:
119
runs-on: ubuntu-latest
@@ -20,14 +18,14 @@ jobs:
2018
- name: Set up Python
2119
uses: actions/setup-python@v5
2220
with:
23-
python-version: '3.10'
21+
python-version: "3.10"
2422

2523
- name: Install packages
2624
run: |
2725
pip install --upgrade pip
2826
pip install --upgrade hatch
2927
30-
- name: Build
28+
- name: Build
3129
run: hatch build
3230

3331
- name: pypi-publish

.github/workflows/type-check.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: type-check-${{ github.head_ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
PYTHONUNBUFFERED: "1"
17+
FORCE_COLOR: "1"
18+
1119
jobs:
1220
run:
1321
runs-on: ubuntu-latest
@@ -25,6 +33,7 @@ jobs:
2533
pip install --upgrade pip
2634
pip install -e '.[tests]'
2735
pip install --upgrade mypy
36+
pip list
2837
2938
- name: Run mypy
3039
run: mypy --show-traceback src/

.github/workflows/unit-test-min.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Install packages
4545
run: |
46-
pip install --upgrade pip
46+
pip list
4747
pip install -e '.[tests]'
4848
pip install -r ci/minimum/requirements.txt
4949
pip list

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Run tests
4343
run: pytest -vv --cov --cov-report=xml
4444

45-
- name: Check Codecov token # e.g., Dependabot doesn't have the CODECOV_TOKEN
45+
- name: Check Codecov token # e.g., Dependabot doesn't have the CODECOV_TOKEN
4646
id: check_codecov_token
4747
run: |
4848
if [ -n "${{ secrets.CODECOV_TOKEN }}" ]; then

0 commit comments

Comments
 (0)