Skip to content

Commit

Permalink
update Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
howl-anderson committed Oct 18, 2024
1 parent 2744199 commit 252d4eb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
# 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: Python package

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push]

jobs:
build:

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7]
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13"]

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 dependencies
run: |
pip install -e .
pip install -r ./requirements/requirements_test.txt
pip install -r ./requirements/requirements_dev.txt
- name: Lint
run: |
make lint
- name: Test
run: |
make test
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Test with pytest
run: |
pip install -r ./requirements/requirements_test.txt
pip install -r ./requirements/requirements_dev.txt
pip install pytest pytest-cov
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
pythonpath = .

0 comments on commit 252d4eb

Please sign in to comment.