Skip to content

fixup! WIP: Add GitHub Actions #1

fixup! WIP: Add GitHub Actions

fixup! WIP: Add GitHub Actions #1

Workflow file for this run

name: CI
on:
push:
branches:
- *

Check failure on line 6 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
pull_request:
branches:
- *
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Run linting
run: hatch run linting:all
- name: Run tests
run: hatch run testing:cov .
- name: Export coverage
run: hatch run testing:coverage html
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: src/htmlcov