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