Skip to content

Commit 74f02a9

Browse files
committed
Split workflow into test and deploy
Also drop linting job, as we now can rely on pre-commit.ci
1 parent 8c2695b commit 74f02a9

File tree

4 files changed

+79
-85
lines changed

4 files changed

+79
-85
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
7+
8+
jobs:
9+
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Build and Check Package
17+
uses: hynek/[email protected]
18+
19+
- name: Download Package
20+
uses: actions/download-artifact@v3
21+
with:
22+
name: Packages
23+
path: dist
24+
25+
- name: Publish package to PyPI
26+
uses: pypa/gh-action-pypi-publish@master
27+
with:
28+
user: __token__
29+
password: ${{ secrets.pypi_token }}
30+
31+
- name: Set up Python
32+
uses: actions/[email protected]
33+
with:
34+
python-version: "3.10"

.github/workflows/main.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
# Cancel running jobs for the same workflow and branch.
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
test:
12+
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
19+
os: [ubuntu-latest, windows-latest]
20+
include:
21+
- python: "3.7"
22+
tox_env: "py37"
23+
- python: "3.8"
24+
tox_env: "py38"
25+
- python: "3.9"
26+
tox_env: "py39"
27+
- python: "3.10"
28+
tox_env: "py310"
29+
- python: "3.11"
30+
tox_env: "py311"
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Set up Python
35+
uses: actions/setup-python@v4
36+
with:
37+
python-version: ${{ matrix.python }}
38+
- name: Install tox
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install --upgrade virtualenv tox
42+
- name: Test
43+
run: |
44+
tox -e ${{ matrix.tox_env }}

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pytest-reportlog
1010
.. |anaconda| image:: https://img.shields.io/conda/vn/conda-forge/pytest-reportlog.svg
1111
:target: https://anaconda.org/conda-forge/pytest-reportlog
1212

13-
.. |ci| image:: https://github.com/pytest-dev/pytest-reportlog/workflows/build/badge.svg
13+
.. |ci| image:: https://github.com/pytest-dev/pytest-reportlog/workflows/test/badge.svg
1414
:target: https://github.com/pytest-dev/pytest-reportlog/actions
1515

1616
.. |python| image:: https://img.shields.io/pypi/pyversions/pytest-reportlog.svg

0 commit comments

Comments
 (0)