Skip to content

Commit

Permalink
Replace template CI from AppVeyor -> GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Jan 19, 2024
1 parent 2ce6951 commit 8138a15
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pytest-awesome/
option
- Comprehensive `README.rst` file that contains useful information about your
plugin
- Continuous integration configuration for [AppVeyor]
- Continuous integration configuration for [GitHub Actions]
- Optional documentation with either [Sphinx] or [MkDocs]
- Choose from several licenses, such as [MIT], [BSD-3], [Apache v2.0], [GNU GPL
v3.0+], or [MPL v2.0]
Expand Down Expand Up @@ -135,7 +135,7 @@ Plugin is free and open source software.
[BSD-3]: https://opensource.org/licenses/BSD-3-Clause
[GNU GPL v3.0+]: https://www.gnu.org/licenses/gpl-3.0.txt
[Apache v2.0]: https://www.apache.org/licenses/LICENSE-2.0
[AppVeyor]: https://www.appveyor.com/
[GitHub Actions]: https://docs.github.com/en/actions
[PyPA Code of Conduct]: https://www.pypa.io/en/latest/code-of-conduct/
[Shortbread]: https://github.com/audreyr/cookiecutter/releases/tag/1.4.0
[osi_certified]: https://opensource.org/trademarks/osi-certified/web/osi-certified-120x100.png
Expand Down
40 changes: 40 additions & 0 deletions pytest-{{cookiecutter.plugin_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: main

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.8'
tox-env: 'py38'
- python-version: '3.9'
tox-env: 'py39'
- python-version: '3.10'
tox-env: 'py310'
- python-version: '3.11'
tox-env: 'py311'
- python-version: '3.12'
tox-env: 'py312'
- python-version: 'pypy-3.8'
tox-env: 'pypy3'
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install tox
run: pip install tox

- name: Test
run: tox -e ${{ matrix.tox-env }}
6 changes: 3 additions & 3 deletions pytest-{{cookiecutter.plugin_name}}/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
:target: https://pypi.org/project/pytest-{{cookiecutter.plugin_name}}
:alt: Python versions

.. image:: https://ci.appveyor.com/api/projects/status/github/{{cookiecutter.github_username}}/pytest-{{cookiecutter.plugin_name}}?branch=master
:target: https://ci.appveyor.com/project/{{cookiecutter.github_username}}/pytest-{{cookiecutter.plugin_name}}/branch/master
:alt: See Build Status on AppVeyor
.. image:: https://github.com/{{cookiecutter.github_username}}/pytest-{{cookiecutter.plugin_name}}/actions/workflows/main.yml/badge.svg
:target: https://github.com/{{cookiecutter.github_username}}/pytest-{{cookiecutter.plugin_name}}/actions/workflows/main.yml
:alt: See Build Status on GitHub Actions

{{cookiecutter.short_description}}

Expand Down
20 changes: 0 additions & 20 deletions pytest-{{cookiecutter.plugin_name}}/appveyor.yml

This file was deleted.

0 comments on commit 8138a15

Please sign in to comment.