summaryrefslogtreecommitdiff
path: root/.github/workflows/codeqa-test.yml
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2020-03-24 12:25:10 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2020-03-24 12:25:10 +0200
commitd1b91e4e9a59470b70d13a58813587b7c645469e (patch)
treead94544fb99e2834d83fdd155f5cb51b07572256 /.github/workflows/codeqa-test.yml
parent6da376ede809a03c9c5e5da1c20875b58bd677a4 (diff)
downloadwheel-git-d1b91e4e9a59470b70d13a58813587b7c645469e.tar.gz
Updated the release procedure
This commit also fixes PRs not triggering checks.
Diffstat (limited to '.github/workflows/codeqa-test.yml')
-rw-r--r--.github/workflows/codeqa-test.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/codeqa-test.yml b/.github/workflows/codeqa-test.yml
new file mode 100644
index 0000000..3a680a2
--- /dev/null
+++ b/.github/workflows/codeqa-test.yml
@@ -0,0 +1,53 @@
+name: Python codeqa/test/tag
+
+on:
+ pull_request:
+ branches: "*"
+ push:
+ branches: "*"
+
+jobs:
+ flake8:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Check code style with Flake8
+ uses: TrueBrain/actions-flake8@v1.2
+ with:
+ path: src tests
+
+ test:
+ needs: [flake8]
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ python-version: [2.7, 3.5, 3.6, 3.8, pypy3]
+ exclude:
+ - os: ubuntu-latest
+ python-version: 3.6
+ - os: macos-latest
+ python-version: 3.6
+ - os: macos-latest
+ python-version: pypy3
+ - os: windows-latest
+ python-version: 2.7
+ - os: windows-latest
+ python-version: 3.5
+ - os: windows-latest
+ python-version: pypy3
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Upgrade setuptools
+ run: pip install "setuptools >= 40.9"
+ - name: Install the project
+ run: "pip install --no-binary=:all: ."
+ - name: Install test dependencies
+ run: pip install .[test]
+ - name: Test with pytest
+ run: pytest