From 4f7e537417226aee1f575d7587abbd2ff2339885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Dukai?= Date: Tue, 30 Aug 2022 13:14:53 +0200 Subject: [PATCH] Tox on push and PR to master --- .github/workflows/python-cli.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/python-cli.yml diff --git a/.github/workflows/python-cli.yml b/.github/workflows/python-cli.yml new file mode 100644 index 0000000..50d26c1 --- /dev/null +++ b/.github/workflows/python-cli.yml @@ -0,0 +1,27 @@ +name: Python package + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python: ["3.8", "3.9", "3.10"] + + steps: + - uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + - name: Install tox and any other packages + run: pip install tox + - name: Run tox + # Run tox using the version of Python in `PATH` + run: tox -e py \ No newline at end of file