Merge pull request #2 from HenryNebula/fix/build_and_release #7
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9, 3.11] | |
plattform: ["Python"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Maven cache | |
uses: actions/cache@v3 | |
with: | |
path: .tox/shared/.m2 | |
key: ${{ matrix.plattform }}-${{ matrix.python-version }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ matrix.plattform }}-${{ matrix.python-version }}-maven- | |
- name: Pip cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ matrix.plattform }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/*requirements.txt', 'tox.ini', 'setup.py') }} | |
restore-keys: | | |
${{ matrix.plattform }}-${{ matrix.python-version }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install coveralls tox tox-gh-actions | |
- name: Test with tox for non Jython only | |
run: tox | |
# - name: Coveralls | |
# uses: baztian/coveralls-python-action@new-merged-changes | |
# with: | |
# parallel: true | |
# flag-name: ${{ matrix.plattform }}-${{ matrix.python-version }} | |
# coverage-version: 4.5.4 | |
# | |
# coveralls_finish: | |
# needs: test | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Coveralls Finished | |
# uses: baztian/coveralls-python-action@new-merged-changes | |
# with: | |
# parallel-finished: true |