aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-01-01 16:43:19 -0800
committerZac Medico <zmedico@gentoo.org>2021-01-01 18:45:30 -0800
commit8d09cb1da12366a0420341be5ab11bed987eb413 (patch)
tree76996dcd77af5820c6c84cd32422735a713b46ec /.github/workflows
parentlib/portage/util/__init__.py: Fix useless-return (diff)
downloadportage-8d09cb1da12366a0420341be5ab11bed987eb413.tar.gz
portage-8d09cb1da12366a0420341be5ab11bed987eb413.tar.bz2
portage-8d09cb1da12366a0420341be5ab11bed987eb413.zip
.travis.yml: convert to github action
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..2ec4c57aa
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,43 @@
+name: CI
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version:
+ - '3.6'
+ - '3.7'
+ - '3.8'
+ - '3.9'
+ - '3.10.0-alpha.3'
+ - 'pypy-3.6'
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install python dependencies
+ run: |
+ set -xe
+ sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev zstd
+ python -VV
+ python -m site
+ python -m pip install --upgrade pip
+ python -m pip install tox tox-gh-actions
+ - name: Test ./setup.py install --root=/tmp/install-root
+ run: |
+ printf "[build_ext]\nportage-ext-modules=true" >> setup.cfg
+ ./setup.py install --root=/tmp/install-root
+ - name: Run tox targets for ${{ matrix.python-version }}
+ run: |
+ tox -vv