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:
|
||||
# This will run when any branch or tag is pushed
|
||||
push:
|
||||
# standalone is an old branch containing a fully functional pypiserver
|
||||
# executable, from back in the day before docker & a better pip.
|
||||
branches-ignore:
|
||||
- standalone
|
||||
branches:
|
||||
- "master"
|
||||
tags:
|
||||
- "v**"
|
||||
# Allowing to run on fork pull requests
|
||||
# Allowing to run on fork and other pull requests
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
@ -29,7 +27,9 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: pip install tox
|
||||
run: |
|
||||
pip install --upgrade setuptools
|
||||
pip install tox==3.27.*
|
||||
- name: Run tests
|
||||
run: tox -e py
|
||||
|
||||
@ -106,7 +106,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user