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..a70d03a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI +on: [push] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + pyversion: [3.9, 3.10, 3.11] + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "${{ matrix.version }}" + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Install tox + run: pip install tox + - name: Run tests on Python ${{ matrix.version }} + run: tox + env: + TOXENV: "py${{ matrix.version }}"