From 709eb8cf452b3ea49b80945710ff1e6aa9289bdd Mon Sep 17 00:00:00 2001 From: ZurMaD Date: Sun, 6 Jun 2021 14:30:55 -0500 Subject: [PATCH] Github Actions: setup for 3.6+ pypy3.6+ --- .github/workflows/setup_python.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/setup_python.yml diff --git a/.github/workflows/setup_python.yml b/.github/workflows/setup_python.yml new file mode 100644 index 0000000..0631897 --- /dev/null +++ b/.github/workflows/setup_python.yml @@ -0,0 +1,35 @@ +# This is a basic workflow to help you get started with Actions + +name: ActionsSetupPython + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + #workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + all-setups: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ '3.6','3.7','3.8','3.9', 'pypy-3.6', 'pypy-3.7' ] #'pypy-3.8', 'pypy-3.9' NOT SUPPORTED NOW + name: Python ${{ matrix.python-version }} setup and tests + steps: + - uses: actions/checkout@v2 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - run: | + pip3 install -r requirements.txt + python setup.py install + cd tests && py.test