mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
fix: force setuptools update + no duplicate runs in GH Actions (#445)
* fix: run on push only on master, otherwise only in PRs * fix: pin versions * chore: print python version * chore: print python version * chore: force upgrade setuptools & remove version prints
This commit is contained in:
parent
530852b279
commit
0ba44b54f1
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -5,13 +5,11 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
# This will run when any branch or tag is pushed
|
# This will run when any branch or tag is pushed
|
||||||
push:
|
push:
|
||||||
# standalone is an old branch containing a fully functional pypiserver
|
branches:
|
||||||
# executable, from back in the day before docker & a better pip.
|
- "master"
|
||||||
branches-ignore:
|
|
||||||
- standalone
|
|
||||||
tags:
|
tags:
|
||||||
- "v**"
|
- "v**"
|
||||||
# Allowing to run on fork pull requests
|
# Allowing to run on fork and other pull requests
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -29,7 +27,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install tox
|
run: |
|
||||||
|
pip install --upgrade setuptools
|
||||||
|
pip install tox==3.27.*
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: tox -e py
|
run: tox -e py
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user