diff --git a/{{cookiecutter.project_slug}}/.github/workflows/ci.yaml b/{{cookiecutter.project_slug}}/.github/workflows/ci.yaml new file mode 100644 index 0000000..9f0ecf1 --- /dev/null +++ b/{{cookiecutter.project_slug}}/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.6", "3.7", "3.8", "3.9"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + make install + - name: Test with pytest + run: | + make test \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/azure-pipelines.yml b/{{cookiecutter.project_slug}}/azure-pipelines.yml deleted file mode 100644 index 7756389..0000000 --- a/{{cookiecutter.project_slug}}/azure-pipelines.yml +++ /dev/null @@ -1,28 +0,0 @@ -# Python package -# Create and test a Python package on multiple Python versions. -# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/python - -trigger: - - master - -jobs: - - job: "Adequacy" - variables: - DEBUG_LEVEL_FOR_DYNACONF: DEBUG - pool: - vmImage: "Ubuntu-16.04" - strategy: - matrix: - Python37: - python.version: "3.7" - maxParallel: 4 - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: "$(python.version)" - architecture: "x64" - - - bash: make clean install test - displayName: "Adequacy Tests"