Skip to content

Commit

Permalink
Added a basic test action
Browse files Browse the repository at this point in the history
  • Loading branch information
scmmmh committed Aug 24, 2023
1 parent 6e1f2d7 commit f455554
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Branch name
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/v}
- name: Setup Path
run: |
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
echo "PIPX_BIN_DIR=$HOME/.local/bin" >> $GITHUB_ENV
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install Base Dependencies
run: |
sudo apt-get update
sudo apt-get install python3-venv pipx
pipx install hatch
- name: Build Application
run: |
hatch build

0 comments on commit f455554

Please sign in to comment.