From 0190c499e39f3f4b0f5a5405a7cf8be6825578e2 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 7 Feb 2024 13:06:51 -0600 Subject: [PATCH] Use colcon/ci reusable testing workflow --- .github/workflows/ci.yaml | 10 ++++++++++ .github/workflows/test.yml | 36 ------------------------------------ 2 files changed, 10 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..49e6e16 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,10 @@ +name: Run tests + +on: + push: + branches: ['master'] + pull_request: + +jobs: + pytest: + uses: colcon/ci/.github/workflows/pytest.yaml@main diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 5c6616f..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Test - -on: - pull_request: - push: - branches: - - master - schedule: - # Run automatically every day - - cron: "0 0 * * *" - -jobs: - test: - runs-on: ubuntu-latest - strategy: - matrix: - os: [ubuntu-latest] - python-version: [3.5, 3.6, 3.7, 3.8, 3.9] - include: - - os: macos-latest - python-version: 3.8 - - os: windows-latest - python-version: 3.8 - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install test dependencies - run: | - pip install -U pytest pytest-repeat pytest-cov coverage - pip install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes pep8-naming pyenchant pylint scspell3k>=2.2 - - name: Run tests - run: | - python -m pytest