Add NEWS.md to track changes #167
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: Ubuntu | |
on: | |
push: | |
branches: [ "master" ] | |
tags: [ '**' ] | |
jobs: | |
build-ubuntu: | |
runs-on: ${{ matrix.config.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: true | |
matrix: | |
config: | |
- { os: ubuntu-latest, python-version: "3.11" } | |
- { os: ubuntu-latest, python-version: "3.10" } | |
- { os: ubuntu-latest, python-version: "3.9" } | |
- { os: ubuntu-latest, python-version: "3.8" } | |
- { os: ubuntu-latest, python-version: "3.7" } | |
- { os: ubuntu-20.04, python-version: "3.6" } | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.config.python-version }} | |
architecture: x64 | |
- name: Display Python version | |
run: | | |
python -c "import sys; print(sys.version)" | |
- name: Set up GraalVM Native Image toolchain | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '20' | |
distribution: 'graalvm' | |
- name: Install Swig | |
run: sudo apt-get install swig | |
- name: Update repository | |
run: | | |
git submodule update --init --recursive | |
- name: Build | |
run: | | |
sh build.sh | |
pip install pychoco -f dist/ | |
- name: Test | |
run: | | |
pip install pytest | |
pip install -r requirements_tests.txt | |
pytest | |
- name: Generate Report | |
run: | | |
pip install coverage | |
coverage run -m unittest | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
- name: Upload to PyPi | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
verbose: true |