Recovery async test run #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
tags: | |
- "**" | |
pull_request: | |
concurrency: | |
group: ci-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Hatch | |
uses: pypa/hatch@install | |
- name: Run Lint | |
run: | | |
hatch fmt --check | |
build: | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Hatch | |
uses: pypa/hatch@install | |
- name: Run Build | |
run: | | |
hatch env create | |
hatch build | |
test: | |
runs-on: macos-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Hatch | |
uses: pypa/hatch@install | |
- name: Run Test | |
env: | |
FYMAIL_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
hatch env create test | |
hatch env show | |
hatch run pip list | |
hatch run pip install pytest-asyncio | |
hatch run pip list | |
hatch -e fymail-test test | |
publish: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') | |
needs: | |
- build | |
- test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Hatch | |
uses: pypa/hatch@install | |
- name: publish | |
env: | |
HATCH_INDEX_USER: __token__ | |
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
hatch build | |
hatch publish |