Skip to content

Commit

Permalink
Add Github actions file
Browse files Browse the repository at this point in the history
Bump actions setup versions

Try to fix failing pipeline

Try to fix failing pipeline

Try to fix failing pipeline

Switch our bash since it is not used by

Fix "tox: not found" error
  • Loading branch information
trevor-james-nangosha committed Sep 25, 2024
1 parent 9daf1ae commit 26b66f6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-22.04
container: python:3.11
steps:
- uses: actions/checkout@v4
- name: Build
run: echo "build"

test:
needs: build
runs-on: ubuntu-22.04
container: python:3.11
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies and run tests
run: |
python --version
pip --version
pip install virtualenv
virtualenv venv
. venv/bin/activate
pip install tox
which tox # debugging
pip install -r requirements.txt
tox

0 comments on commit 26b66f6

Please sign in to comment.