Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aiohttp tests to CI #1415

Merged
merged 10 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/aiohttp.yml
bdraco marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---

name: Aiohttp


on:
merge_group:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master


env:
COLOR: yes

Check warning on line 19 in .github/workflows/aiohttp.yml

View workflow job for this annotation

GitHub Actions / lint / Linter

19:10 [truthy] truthy value should be one of [false, on, true]
FORCE_COLOR: 1
PY_COLORS: 1


jobs:

test-aiohttp:
name: Aiohttp tests
runs-on: ubuntu-latest
steps:
- name: Checkout aiohttp
uses: actions/checkout@v4
with:
repository: aio-libs/aiohttp
submodules: true
- name: Checkout yarl
uses: actions/checkout@v4
with:
path: vendor/yarl
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip
cache-dependency-path: requirements/*.txt
- name: Update pip, wheel, setuptools, build, twine
run: |
python -m pip install -U pip wheel setuptools build twine
bdraco marked this conversation as resolved.
Show resolved Hide resolved
- name: Provision the dev env
run: make .develop
- name: Cythonize yarl
working-directory: vendor/yarl
run: make cythonize
- name: Install yarl
working-directory: vendor/yarl
run: >-
python -m pip install -e .
- name: Ensure version
run: python -m pip list
- name: Run tests
run: python -m pytest
shell: bash
- name: Run dev_mode tests
run: python -X dev -m pytest -m dev_mode
shell: bash
bdraco marked this conversation as resolved.
Show resolved Hide resolved

...
1 change: 1 addition & 0 deletions CHANGES/1415.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add aiohttp tests to CI. -- by :user:`Cycloctane`.
Cycloctane marked this conversation as resolved.
Show resolved Hide resolved
Loading