| 1 |
name: Testing |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
pull_request: |
| 8 |
branches-ignore: [] |
| 9 |
|
| 10 |
jobs: |
| 11 |
build-linux: |
| 12 |
runs-on: ubuntu-latest |
| 13 |
strategy: |
| 14 |
max-parallel: 5 |
| 15 |
matrix: |
| 16 |
python: [3.9, '3.10', '3.11', '3.12'] |
| 17 |
fail-fast: false |
| 18 |
|
| 19 |
|
| 20 |
steps: |
| 21 |
- uses: actions/checkout@v3 |
| 22 |
- name: Set up Python 3.X |
| 23 |
uses: actions/setup-python@v2 |
| 24 |
with: |
| 25 |
python-version: ${{ matrix.python }} |
| 26 |
|
| 27 |
- name: Install the package itself |
| 28 |
run: | |
| 29 |
pip install poetry |
| 30 |
poetry install --with dev |
| 31 |
|
| 32 |
- name: Test with pytest |
| 33 |
run: | |
| 34 |
poetry run pytest --cov-report term --cov=easydev |
| 35 |
|
| 36 |
- name: coveralls |
| 37 |
run: | |
| 38 |
pip install coveralls |
| 39 |
coveralls --service=github |
| 40 |
env: |
| 41 |
GITHUB_TOKEN: ${{ github.token }} |