Skip to content

Update build.yml to use the latest ubuntu latest as ubunut 18 is deprecated + skip semantic release for now #8

Update build.yml to use the latest ubuntu latest as ubunut 18 is deprecated + skip semantic release for now

Update build.yml to use the latest ubuntu latest as ubunut 18 is deprecated + skip semantic release for now #8

Workflow file for this run

name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.9]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Run tests
run: tox -vv
release:
name: Release
runs-on: ubuntu-latest
needs: [ test ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
PyPI_token: ${{ secrets.PYPI_TOKEN }}