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