-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #261 from ThomasWaldmann/gha2
more CI work
- Loading branch information
Showing
3 changed files
with
26 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -72,5 +90,4 @@ jobs: | |
OS: ${{ runner.os }} | ||
python: ${{ matrix.python-version }} | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
env_vars: OS, python |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |