Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Sep 24, 2024
1 parent cce2b87 commit 1bdac20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Upload to PyPI

on:
# release:
# types: [created]
push:
tags:
- 'v*.*.*'
- "v*.*.*"
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -20,14 +18,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"

- name: Install packages
run: |
pip install --upgrade pip
pip install --upgrade hatch
- name: Build
- name: Build
run: hatch build

- name: pypi-publish
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:
branches:
- main

concurrency:
group: type-check-${{ github.head_ref }}
cancel-in-progress: true

env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"

jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -25,6 +33,7 @@ jobs:
pip install --upgrade pip
pip install -e '.[tests]'
pip install --upgrade mypy
pip list
- name: Run mypy
run: mypy --show-traceback src/ tests/

0 comments on commit 1bdac20

Please sign in to comment.