Skip to content

Commit

Permalink
chore: switch to hatch in workflows/tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolJagodzinski committed Feb 3, 2025
1 parent 2e2bb01 commit e772e8d
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,30 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e .[asgi-file-uploads,tracing,telemetry,test,dev]
- name: Pytest
run: |
pytest --cov=ariadne --cov=tests
- uses: codecov/codecov-action@v3
- name: Linters
run: |
pylint ariadne tests
mypy ariadne tests_mypy --ignore-missing-imports --check-untyped-defs
black --check .
- name: Benchmark
run: |
pytest benchmark --benchmark-storage=file://benchmark/results --benchmark-compare
- name: Checkout source code
uses: actions/checkout@v4

integration:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Hatch
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc

- name: Run static analysis
run: hatch fmt --check

- name: Run type checking
run: hatch run types:check

- name: Run tests
run: hatch test -c -py ${{ matrix.python-version }}

- name: Benchmark
run: hatch test benchmark --benchmark-storage=file://benchmark/results --benchmark-compare

integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit e772e8d

Please sign in to comment.