errata: change reference overwrite behavior #97
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and release | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
Test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- python: python3 | |
pip: pip3 | |
- python: python2 | |
pip: pip | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install python dependencies | |
run: | | |
${{ matrix.pip }} install --user --upgrade pip | |
${{ matrix.pip }} --no-cache-dir install --user setuptools wheel "urllib3==1.25.11" | |
${{ matrix.pip }} --no-cache-dir install --user -r requirements.txt | |
- name: Show python dependencies | |
run: | | |
${{ matrix.python }} --version | |
${{ matrix.pip }} freeze | |
- name: Run tests | |
uses: ./.github/actions/run-tests | |
- name: Coveralls | |
uses: AndreMiras/coveralls-python-action@v20201129 | |
with: | |
parallel: true | |
github-token: ${{ secrets.github_token }} | |
flag-name: run-${{ matrix.test_number }} | |
Coveralls: | |
needs: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: AndreMiras/coveralls-python-action@v20201129 | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true | |
Release: | |
if: ${{ github.event_name == 'push' }} | |
needs: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 2.7 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install python dependencies | |
run: | | |
python -m pip install --user --upgrade pip | |
pip --no-cache-dir install --user setuptools wheel "urllib3==1.25.11" | |
pip --no-cache-dir install --user -r requirements.txt | |
- name: Build package | |
run: | | |
mkdir clean-build | |
python setup.py sdist bdist_wheel --universal --dist-dir ./clean-build | |
- name: Publish package | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_PASSWORD }} | |
packages_dir: clean-build/ |