Skip to content

Commit

Permalink
Update CI (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Nov 24, 2023
1 parent a9d514f commit 71467f2
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
branches: ["*"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PIP_ROOT_USER_ACTION: ignore

jobs:
build:
Expand All @@ -15,19 +22,19 @@ jobs:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
fetch-depth: 0
filter: blob:none
- uses: actions/setup-python@v4
with:
path: |
~/.cache/pip
~/.cache/pre-commit
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
python-version: ${{ matrix.python-version }}
cache: pip
- name: dependencies
run: |
pip install --upgrade pip wheel
pip install .[test,typehints]
- name: tests
run: pytest --color=yes
run: pytest --verbose --color=yes
- name: upload coverage
uses: codecov/codecov-action@v3

0 comments on commit 71467f2

Please sign in to comment.