From b9cb03099c7a46f0cbd9dd172728187adf3e2fe2 Mon Sep 17 00:00:00 2001 From: Matt Clarke Date: Fri, 24 Feb 2023 09:46:56 +0100 Subject: [PATCH] renamed action file --- .github/workflows/ubuntu-build.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ubuntu-build.yml diff --git a/.github/workflows/ubuntu-build.yml b/.github/workflows/ubuntu-build.yml new file mode 100644 index 000000000..ea8079725 --- /dev/null +++ b/.github/workflows/ubuntu-build.yml @@ -0,0 +1,33 @@ +name: Python application + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + - name: Lint with flake8 + run: | + flake8 --exclude definitions,nx-class-documentation + - name: Test with pytest + run: | + pytest