Skip to content

Commit

Permalink
Merge pull request #1 from anze3db/ci-build-and-test
Browse files Browse the repository at this point in the history
Create build-and-test.yml
  • Loading branch information
anze3db authored Aug 12, 2023
2 parents c814829 + 5bd31cb commit 53d37d9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Build and Test words-tui

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Cache Hatch
id: cache-hatch
uses: actions/cache@v3
with:
path: /home/runner/.local/share/hatch/env/virtual/
key: ${{ runner.os }}-hatch
- name: Build
run: hatch build
- name: Test
run: hatch run test
2 changes: 2 additions & 0 deletions tests/test_tui.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_tui():
assert True

0 comments on commit 53d37d9

Please sign in to comment.