From ddc5fb6de788eb8db4ef93e0c92c8ec89b52f705 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Sat, 2 Dec 2023 14:09:17 +0100 Subject: [PATCH] Switch to Github CI --- .circleci/config.yml | 63 ---------------------------------------- .github/workflows/ci.yml | 19 ++++++++++++ 2 files changed, 19 insertions(+), 63 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/ci.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 930f61d..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,63 +0,0 @@ -version: 2 - -references: - - test-steps: &test-steps - - checkout - - run: pip install --user tox - - run: ~/.local/bin/tox - -jobs: - - test-3.9: - docker: - - image: circleci/python:3.9 - steps: *test-steps - environment: - TOXENV: py39 - - test-3.10: - docker: - - image: circleci/python:3.10 - steps: *test-steps - environment: - TOXENV: py310 - - test-3.11: - docker: - - image: circleci/python:3.11 - steps: *test-steps - environment: - TOXENV: py311 - - test-pypy3.11: - docker: - - image: pypy:3.11 - steps: *test-steps - environment: - TOXENV: pypy311 - -workflows: - version: 2 - - # Build on push - on_push: - jobs: - - test-3.9 - - test-3.10 - - test-3.11 - - test-pypy3.11 - - # Build master every week on Monday at 04:00 am - weekly: - triggers: - - schedule: - cron: "0 4 * * 1" - filters: - branches: - only: - - master - jobs: - - test-3.9 - - test-3.10 - - test-3.11 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..182825d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Install tox + run: pip install tox + - name: Run tests on Python 3.9 + run: tox + environment: + TOXENV: py39