Skip to content

Commit

Permalink
Merge pull request #261 from ThomasWaldmann/gha2
Browse files Browse the repository at this point in the history
more CI work
  • Loading branch information
ThomasWaldmann authored Jan 5, 2021
2 parents db54490 + 50df627 commit f4f8d97
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 46 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,50 @@ jobs:
- name: Lint with flake8
run: |
pip install flake8
flake8 src scripts conftest.py
flake8 src scripts setup.py
pytest:

needs: lint

strategy:
matrix:
include:
- os: ubuntu-18.04
python-version: 3.5
toxenv: py35
- os: ubuntu-18.04
python-version: 3.6
toxenv: py36
- os: ubuntu-20.04
python-version: 3.7
toxenv: py37
- os: ubuntu-20.04
python-version: 3.8
toxenv: py38
- os: ubuntu-20.04
python-version: 3.9
toxenv: py39

env:
# Configure pkg-config to use OpenSSL from Homebrew
PKG_CONFIG_PATH: /usr/local/opt/[email protected]/lib/pkgconfig
TOXENV: ${{ matrix.toxenv }}

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
with:
# just fetching 1 commit is not enough for setuptools-scm, so we fetch all
fetch-depth: 0
- name: Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.5
python-version: ${{ matrix.python-version }}
- name: Install Python requirements
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.d/development.txt
pip install -r requirements.d/dev.txt
- name: run pytest via tox
run: |
tox --skip-missing-interpreters
Expand All @@ -72,5 +90,4 @@ jobs:
OS: ${{ runner.os }}
python: ${{ matrix.python-version }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS, python
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# stuff we need to include into the sdist is handled automatically by
# setuptools_scm - it includes all git-committed files.
# but we want to exclude some committed files/dirs not needed in the sdist:
exclude .gitattributes .gitignore .travis.yml
exclude .gitattributes .gitignore .github

0 comments on commit f4f8d97

Please sign in to comment.