1
0
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:
Dmitrii Orlov 2022-10-28 00:47:45 +02:00 committed by GitHub
parent 530852b279
commit 0ba44b54f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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