forked from project-thea/thea-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
9daf1ae
commit 26b66f6
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |