From decf072b175f8c09bef3771f8e62d49811ce3763 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Mon, 3 Jul 2023 14:06:04 +0100 Subject: [PATCH] Added GitHub Actions workflow and removed Azure Pipelines configuration --- .github/workflows/main.yml | 46 ++++++++++++++++++++++++++++++++++++++ azure-pipelines.yml | 38 ------------------------------- 2 files changed, 46 insertions(+), 38 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 azure-pipelines.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2807ca3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + pull_request: + +jobs: + + tests: + uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 + with: + coverage: codecov + runs-on: | + linux: ubuntu-latest + envs: | + # Code style + - linux: codestyle + + # Linux builds - test on all supported Matplotlib versions + - linux: py38-test-mpl33 + - linux: py39-test-mpl34 + - linux: py39-test-mpl35 + - linux: py310-test-mpl36 + - linux: py310-test-mpl37 + - linux: py311-test-mpl38 + - linux: py311-test-mpldev + + # MacOS X and Windows builds - alternative Matplotlib versions + - windows: py38-test-mpl33 + - macos: py39-test-mpl34 + - windows: py39-test-mpl35 + - macos: py310-test-mpl36 + - windows: py310-test-mpl37 + - macos: py311-test-mpl38 + - windows: py311-test-mpldev + + # Image tests + - linux: py311-test-mpl38-image + + publish: + uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 + with: + test_extras: test + test_command: pytest --pyargs test_package + secrets: + pypi_token: ${{ secrets.pypi_token }} diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 1e09555..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,38 +0,0 @@ -resources: - repositories: - - repository: OpenAstronomy - type: github - endpoint: astrofrog - name: OpenAstronomy/azure-pipelines-templates - ref: master - -jobs: - -- template: run-tox-env.yml@OpenAstronomy - parameters: - - coverage: codecov - - envs: - - # PEP8 checks - - linux: codestyle - coverage: 'false' - - # Linux builds - test on all supported Matplotlib versions - - linux: py36-test-mpl30 - - linux: py37-test-mpl31 - - linux: py37-test-mpl32 - - linux: py38-test-mpl33 - - linux: py38-test-mpldev - - # MacOS X and Windows builds - alternative Matplotlib versions - - windows: py36-test-mpl30 - - macos: py37-test-mpl31 - - windows: py37-test-mpl32 - - macos: py38-test-mpl33 - - windows: py38-test-mpldev - - # Image tests - - linux: py37-test-mpl30-image - - linux: py37-test-mpl31-image