lsst-sqre / safir Goto Github PK
View Code? Open in Web Editor NEWSafir is the SQuaRE Framework for building FastAPI services
Home Page: https://safir.lsst.io
License: MIT License
Safir is the SQuaRE Framework for building FastAPI services
Home Page: https://safir.lsst.io
License: MIT License
If we can cache .tox
in GitHub Actions we could speed up the CI a lot. However, in practice, I find that Tox won't run from a cached .tox
directory. It could be worth looking into this.
The workflow is:
name: Python CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- 3.7
- 3.8
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox
- name: Cache tox environments
id: cache-tox
uses: actions/cache@v1
with:
path: .tox
# setup.cfg, pyproject.toml, and .pre-commit-config.yaml have
# versioning info that would impact the tox environment. hashFiles
# only takes a single file path or pattern at the moment.
key: ${{ runner.os }}-${{ matrix.python }}-tox-${{ hashFiles('setup.cfg') }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run tox
run: tox -e py,lint,typing # run tox using Python in path
The error is:
Run tox 1s
15
##[error]Process completed with exit code 2.
1
Run tox -e py,lint,typing
6
ERROR: invocation failed (exit code 1), logfile: /home/runner/work/safir/safir/.tox/.package/log/.package-4.log
7
================================== log start ===================================
8
Traceback (most recent call last):
9
File "/opt/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/tox/helper/build_requires.py", line 7, in <module>
10
backend = __import__(backend_spec, fromlist=[None])
11
ModuleNotFoundError: No module named 'setuptools'
12
13
=================================== log end ====================================
14
ERROR: FAIL could not package project - v = InvocationError("/home/runner/work/safir/safir/.tox/.package/bin/python /opt/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/tox/helper/build_requires.py setuptools.build_meta ''", 1)
15
##[error]Process completed with exit code 2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.