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

[CI] Migrate CI to GitHub actions #166

Merged
merged 8 commits into from
Mar 11, 2021
Merged

Conversation

elacuesta
Copy link
Member

@elacuesta elacuesta commented Mar 10, 2021

Based on Scrapy's config.

This will need a PYPI_TOKEN repository secret to be set. Publishing to PyPI is working against the testing instance (see https://test.pypi.org/project/w3lib/, pushed from https://github.com/elacuesta/w3lib/runs/2078491608)

@codecov
Copy link

codecov bot commented Mar 10, 2021

Codecov Report

Merging #166 (de10ecd) into master (4f5fcf9) will decrease coverage by 3.51%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #166      +/-   ##
==========================================
- Coverage   95.45%   91.94%   -3.52%     
==========================================
  Files           7        7              
  Lines         484      484              
  Branches       99       99              
==========================================
- Hits          462      445      -17     
- Misses         15       22       +7     
- Partials        7       17      +10     
Impacted Files Coverage Δ
w3lib/util.py 57.57% <0.00%> (-12.13%) ⬇️
w3lib/form.py 89.28% <0.00%> (-7.15%) ⬇️
w3lib/url.py 94.66% <0.00%> (-3.40%) ⬇️
w3lib/http.py 96.87% <0.00%> (-3.13%) ⬇️
w3lib/html.py 92.10% <0.00%> (-1.76%) ⬇️
w3lib/encoding.py 98.55% <0.00%> (-1.45%) ⬇️

@elacuesta elacuesta changed the title [CI] Run tests on GitHub actions [CI] Migrate CI to GitHub actions Mar 10, 2021
Comment on lines +339 to +345
@pytest.mark.xfail(reason="https://github.com/scrapy/w3lib/issues/164")
def test_add_or_replace_parameter_fail(self):
self.assertEqual(
add_or_replace_parameter('http://domain/test?arg1=v1;arg2=v2', 'arg1', 'v3'),
'http://domain/test?arg1=v3&arg2=v2'
)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a temporary workaround to avoid having the workflows fail (#164)

@elacuesta elacuesta marked this pull request as ready for review March 10, 2021 16:09

jobs:
build:

runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, pypy3]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change mean in practice (some versions are dropped)?

Copy link
Member

@Gallaecio Gallaecio Mar 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Versions in this file are indicated along job definitions under include.

But these versions have actually been moved to the new tests.yml file. This file is now only for static tests (maybe Build is not the best name, Check as we use in Scrapy is slightly better).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants