Skip to content

Commit 1a23a26

Browse files
Ryan Whitmorebrandonwillard
authored andcommitted
Update the github actions tests and pypi specs to drop old python versions and include more modern action dependency versions.
1 parent 94671fa commit 1a23a26

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0
2727
- uses: actions/setup-python@v2
2828
with:
29-
python-version: "3.8"
29+
python-version: "3.9"
3030
- name: Build the sdist
3131
run: |
3232
python setup.py sdist

.github/workflows/tests.yml

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
runs-on: ubuntu-latest
4848
if: ${{ needs.changes.outputs.changes == 'true' }}
4949
steps:
50-
- uses: actions/checkout@v2
51-
- uses: actions/setup-python@v2
52-
with:
53-
python-version: 3.8
54-
- uses: pre-commit/action@v2.0.0
50+
- uses: actions/checkout@v2
51+
- uses: actions/setup-python@v2
52+
with:
53+
python-version: 3.9
54+
- uses: pre-commit/action@v2.0.0
5555

5656
test:
5757
needs:
@@ -62,27 +62,26 @@ jobs:
6262
strategy:
6363
matrix:
6464
python-version:
65-
- 3.8
6665
- 3.9
67-
- '3.10'
68-
- '3.11'
66+
- "3.10"
67+
- "3.11"
6968
steps:
70-
- uses: actions/checkout@v2
71-
- uses: actions/setup-python@v2
72-
with:
73-
python-version: ${{ matrix.python-version }}
74-
- name: Install dependencies
75-
run: |
76-
python -m pip install --upgrade pip
77-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
78-
- name: Test with pytest
79-
run: |
80-
pytest -v tests/ --cov=etuples --cov-report=xml:./coverage.xml
81-
- name: Coveralls
82-
uses: AndreMiras/coveralls-python-action@develop
83-
with:
84-
parallel: true
85-
flag-name: run-${{ matrix.python-version }}
69+
- uses: actions/checkout@v2
70+
- uses: actions/setup-python@v2
71+
with:
72+
python-version: ${{ matrix.python-version }}
73+
- name: Install dependencies
74+
run: |
75+
python -m pip install --upgrade pip
76+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
77+
- name: Test with pytest
78+
run: |
79+
pytest -v tests/ --cov=etuples --cov-report=xml:./coverage.xml
80+
- name: Coveralls
81+
uses: AndreMiras/coveralls-python-action@develop
82+
with:
83+
parallel: true
84+
flag-name: run-${{ matrix.python-version }}
8685

8786
all-checks:
8887
if: ${{ always() }}
@@ -100,7 +99,7 @@ jobs:
10099
if: ${{ needs.changes.outputs.changes == 'true' && needs.all-checks.result == 'success' }}
101100
runs-on: ubuntu-latest
102101
steps:
103-
- name: Coveralls Finished
104-
uses: AndreMiras/coveralls-python-action@develop
105-
with:
106-
parallel-finished: true
102+
- name: Coveralls Finished
103+
uses: AndreMiras/coveralls-python-action@develop
104+
with:
105+
parallel-finished: true

0 commit comments

Comments
 (0)