From 01fae895b800863871a16d6ca1d6ae80cbe01463 Mon Sep 17 00:00:00 2001 From: Boris Glimcher Date: Sun, 24 Sep 2023 06:32:48 +0300 Subject: [PATCH] ci: move workflows to new repo Signed-off-by: Boris Glimcher --- .github/workflows/python.yaml | 13 ++++++++++ .github/workflows/test.yaml | 47 ----------------------------------- 2 files changed, 13 insertions(+), 47 deletions(-) create mode 100644 .github/workflows/python.yaml delete mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml new file mode 100644 index 0000000..fed71f2 --- /dev/null +++ b/.github/workflows/python.yaml @@ -0,0 +1,13 @@ +name: Python + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + call: + uses: opiproject/actions/.github/workflows/python.yaml@main + secrets: inherit diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index 16260e8..0000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,47 +0,0 @@ -# This workflow will install Python dependencies, run tests and lint -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python - -name: Tests - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -permissions: - contents: read - -jobs: - test: - - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install poetry - uses: snok/install-poetry@v1 - with: - version: 1.3.2 - virtualenvs-create: true - virtualenvs-in-project: true - - - run: poetry install --no-interaction --with=dev,test - - - name: Lint code - run: make lint - - - name: Test with pytest - run: poetry run pytest --cov --cov-report=xml - - - uses: codecov/codecov-action@v3